Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form calls function in design mode
Message
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:
01395239
Views:
205
SWAG. You'll not get an error if GetWkEndDate() function isn't on the path when form is open. After form is run the function will be in VFP cache and generate an error when VFP tries to evaluate the property.

>I have a form that has a property called StartingInvDate. It calls a function that returns the week ending date for a given date. This company's week ending is Sunday each week. So given any date, the function returns the date of the week end that the passed date falls within. So the actual property value is =GetWkEndDate(date()) - 7
>
>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.
>
>I know how to get around this, I'm just wondering why it's happening. Is anyone familiar with such a problem?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform