Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Used a define in form object property
Message
 
À
29/08/1996 23:21:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00006898
Message ID:
00006990
Vues:
48
>>My Problem is that "_DefineCaption" was not replace by "1"
>>Do you have an idea why?
>
>Now I have an idea why. Because the caption property is a text property at runtime. This text is exactly the same as is on screen. That means you can change it only from program. The expression you enter in the designer is evaluated only when you enter it and appears only at design time.
>Try this: Add a property TestProp to the form and give it a char value: "Text1".
>Set the caption for an object to ThisForm.TestProp. The caption will be "Text1". Change the value for TestProp. No changes will be done to the caption until you go again to the caption of the corresponding object.
>This shows clear that the expression is evaluated only at the design time and only you enter it. At the design time, #define constants are not available.

Hi Paul,
Do you know why, if you used in object caption a VFP define it worked good ex: =STR(_DBLCLICK,5,3). If I found the place where VFP did is define may be I will add my there and it will work to. What you think about it?

Rock
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform