Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form calls function in design mode
Message
From
20/04/2009 10:48:41
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01395196
Message ID:
01395587
Views:
57
Naomi,

Perhaps you are right, however, he specifically mentions the IDE. I assumed he meant the VFP IDE. " It only happens after I run the program, exit it, and then try to open the form in the IDE." I guess I misunderstood what he was talking about.

I sure wish there was a way to run code when a form or a class is opened in design mode... That would be fantastic.

Steve

I run the program, open the form, the date is populated, everything is just peachy. Then I exit the program and try to open the form to make some changes. I get an error because when the form is opened, it calls the function and the function uses a constant that is not defined at design time. If I just open VFP and open the form, this does not happen. It only happens after I run the program, exit it, and then try to open the form in the IDE. The app seems to be exiting properly - never had a problem with dangling references or anything like that - but I suppose it could be something like that.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform