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.Really? What would you hoping to achieve that would be fantastic?
>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.
Jim Nelson
Newbury Park, CA