>If one makes a simple project containing one form with one button.
>Then in the button place the line:
>
>thisform.IDontExist.click()
>
>or something like that...the point being that there is no IDontExist object
>on the form...
>
>Shouldn't the compiler be able to find that the object doesn't exist?
>
>I tried in both 6 and 7 and same thing!
>
>This is pretty dangerous I'd say..
>
>Maybe is there a setting for this? I couldn't see anything!
>Or Bug?
>
>Thanks!
Hi Tim,
no the compiler should not find this.
An object may be created at runtime using addobject() or newobject() method.
IOW
Not all objects may exist at design time.
for example it is a common way to add objects to a pageframe at first activate of this pageframe, this speeds up forms init time.
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]