I have a Delphi 7 program with several Forms. A procedure in a Form calls another Form. This has been working until I had to change the called Form to a different one. Now the program skips the entire Unit that contains the calling Form and apparently is finding an old dcu file and running it since the resulting Form is the old one and not the new one. The following code might help:
Unit NewMember
……..
……..
Application.CreateForm(TForm_NewEntry, Form_NewEntry);
Form_NewEntry.ShowModal;
Previously the called Form was “Form_NewData” and “Form_NewEntry is the desired Form as shown in the Unit. Form_NewData is displayed rather than the desired Form_NewEntry. Unit NewMember is never run.
How can this be resolved?
Unit NewMember
……..
……..
Application.CreateForm(TForm_NewEntry, Form_NewEntry);
Form_NewEntry.ShowModal;
Previously the called Form was “Form_NewData” and “Form_NewEntry is the desired Form as shown in the Unit. Form_NewData is displayed rather than the desired Form_NewEntry. Unit NewMember is never run.
How can this be resolved?