Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler doesn't find missing Objects..
Message
From
22/04/2002 04:27:08
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
22/04/2002 04:15:47
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00647455
Message ID:
00647458
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
>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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform