Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigned properties
Message
De
28/03/2003 01:09:51
 
 
À
28/03/2003 01:01:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00771185
Message ID:
00771187
Vues:
9
>In VFP 8, unlike VFP 7, property values are checked whenever the form is opened in development mode.
>So if I have a form with
>Caption =m.cTitle
>where the expression exists only at run-time you get a non-critical error loading the form in design mode. "Data type is invalid for this property".
>Worst of all it doesn't tell you which object has the problem.
>
>Is there anyway to turn this "feature" off??

If this code is part of a form base class, you can rely on the existance of an application property. Basically, at run time, it will exist. So, you will allow the execution of this line. Otherwise, you just skip that line.

If this code is only present on one or a few forms only, then, you may revise this approach on how it could be made generic and then refer to the paragraph above.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform