Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid caption with = being evaluated in IDE
Message
From
18/07/2007 13:12:23
 
 
To
17/07/2007 16:11:48
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01241270
Message ID:
01241642
Views:
23
If the function is your code, can you condition the function to return '' if the dbc is not open? or create a "dummy" function which returns ''

Glenn



>Wow - I managed to put all of that in the title :).
>
>This started recently, and I really don't know what started it (or was it that I didn't notice much before?). When I edit some classes or form which have object where caption is a function call like this
>
>
	Caption = (SomeFunction("SomeParameter"))
>
>which is how it looks in the class browser's output. In the PEM window, it's
>
>
=SomeFunction("SomeParameter")
>
>The function is actually called, and since the DBC it uses and its tables as well are not accessible, it errors out. If I cancel it, I'm able to edit the form (although the caption of the form is blank now). If I have the dbc open, it populates the caption and leaves a global object and few variables visible in the debugger - meaning it runs whatever I do, I can only choose between allowing it or canceling it.
>
>Is there a way to disable this edit-time evaluation of captions?
Previous
Reply
Map
View

Click here to load this message in the networking platform