Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement