Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to remove the IDE-created form variable?

Tags:

forms

delphi

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.

like image 769
Server Overflow Avatar asked Feb 01 '11 13:02

Server Overflow


1 Answers

I don't use auto-create and I never use global variables containing form references. It works just fine.

like image 155
David Heffernan Avatar answered Nov 15 '22 09:11

David Heffernan