jjschwartz
Technical User
The first thing my application needs to do is open a text file and read its contents into a string array that, I believe, will need to be a global variable. Then my main form takes over and does all the interfacing and work.
Where in the project should this initial reading of the file go? It seems like right after application.initialize in the project file would be appropriate but all the texts say not to modify this file and to leave it to Delphi if you're not an expert. I suppose it could be some initial code for my main form but then I have to suppress the showing of the form until after the file is read and I have to figure out how to make the array visible to all my other forms. Any advice?
TIA,
Jeff Schwartz
Where in the project should this initial reading of the file go? It seems like right after application.initialize in the project file would be appropriate but all the texts say not to modify this file and to leave it to Delphi if you're not an expert. I suppose it could be some initial code for my main form but then I have to suppress the showing of the form until after the file is read and I have to figure out how to make the array visible to all my other forms. Any advice?
TIA,
Jeff Schwartz