Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tooltips
Message
 
 
À
16/09/2005 12:53:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01050316
Message ID:
01050497
Vues:
16
Grady,

VFP caches class definitions in memory. If you put an expression into the value for a property, that expression is evaluated only once, the very first time the class is instantiated. Every other instance of the class will have the cached value assigned to the property.

To make it truly dynamic you must make this assignment in a line of code. If you put it in the Init() method then it will be evaluated for each instance.


>I create the shape dynamically at thhe end of along prg run. The tooltip code works fine until I try to add the date.
>
>> The code below is self explanitory, but it isn't working. I have also tried it without the dmy.
>>
>> .ToolTipText = "Estimated next event date " + TRANSFORM(DMY(thenextdate))
>>
>> I have tried several ways to accomplish this. Is it possible to do this with a tooltip?
>> If it is, then how do I code it?
>>
>
>When do You set it and where?
>- In the properties-Window? then You might need to add another "=" in front of the quotation-marks.
>- In code then it should work, however thenextDate must be in scope as Boris already pointed out (same for the properties-Window).
>
>And, Do You have ShowTips on the Form's level set to .T.? otherwise nothing happens anyway
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform