I have a form called MyForm stored in a unit called Unit UnitMyFrom. Of course Delphi automatically added this code:
TYPE
TMyForm = class(TForm)
private
public
end;
var MyForm: TMyForm;
but I removed the var declaration from that unit. Somebody said that this may cause problems with the IDE. Is it true? Does the IDE require that variable?
EDIT:
The MyForm IS NOT automatically created. The user creates that form at runtime.
I don't use auto-create and I never use global variables containing form references. It works just fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With