Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form calls function in design mode
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01395196
Message ID:
01395239
Vues:
206
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform