This issue might be hard to explain: in a game I am creating the base is a TForm holding a TStringGrid (where the action is) and some labels and such. From the menu the user can select and open a new (smaller) form and next select a new grid-size. Upon returning into the main form the game restarts with this new grid-size. So far so good.
Now the user is also able to select from the menu an option to fill in some real player names instead of the default 'Player1 / Player2'. Upon returning onto the main form the game restarts with a re-initialized / created TStringGrid (and the new name(s) displayed). The new name(s) is good, the new TStringGrid not.
How can such be avoided?
I can image someone needs more information being able to answer. Please do ask!I assume I have to re-order the source code in a way that the logic is correctly applied upon calling another form and returning to the original one, but I cannot find the correct order the program is looping through the code.