Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigned properties
Message
From
28/03/2003 01:09:51
 
 
To
28/03/2003 01:01:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00771185
Message ID:
00771187
Views:
10
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform