Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid caption with = being evaluated in IDE
Message
From
17/07/2007 17:04:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
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:
01241292
Views:
17
I think you should better set the caption in Form.Init():
ThisForm.Caption = SomeFunction(...)
>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?
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform