Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid caption with = being evaluated in IDE
Message
De
17/07/2007 17:04:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
17/07/2007 16:11:48
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01241270
Message ID:
01241292
Vues:
18
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform