I have just changed to Delphi 7 from Delphi 4, and have run into a small problem. Won't accept code to create a form (derived from an existing form) at runtime.
One application (MDI style) use a form that is created at design time, it is in the Projects Uses declaration, but is not created at start up. When I need to use it I create in in a procedure as:
fNewForm := CustomerForm.create(Application);
fNewForm.show;
and in the form I have a release statement.
This is to allow the operator to have many customer (well limited to 4 actually by the program design) details on screen at the same time, and to work on each independently.
Only problem is - won't compile under Delphi 7 - doesn't like the create method.
Can't see how to do it in the help
Can anyone point me in the right direction - and does anyone know if this is cobvered in any of the books on Delphi 7?
Many thanks
Roger
One application (MDI style) use a form that is created at design time, it is in the Projects Uses declaration, but is not created at start up. When I need to use it I create in in a procedure as:
fNewForm := CustomerForm.create(Application);
fNewForm.show;
and in the form I have a release statement.
This is to allow the operator to have many customer (well limited to 4 actually by the program design) details on screen at the same time, and to work on each independently.
Only problem is - won't compile under Delphi 7 - doesn't like the create method.
Can't see how to do it in the help
Can anyone point me in the right direction - and does anyone know if this is cobvered in any of the books on Delphi 7?
Many thanks
Roger