Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Expression result in ToolTipText
Message
 
À
25/07/2005 07:54:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01035643
Message ID:
01035645
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Dear Experts
>
>I want to show the result of following codes in tooltiptext of text4.value, so I write the codes in tooltiptext of text4 but it shows the codes instead of expression result given property against ToolTipText.
>
>The codes in tooltiptext are
>(thisform.text4.value-thisform.text24.value)/thisform.text13.value*100
>
>What is wrong? Please help

Robert, ToolTipText is a static text, what I mean is even you evaluate this in init method the tooltiptext never changed no matter how the values of the TextBoxes are changed after that.
In vfp 6 you can do the following:
In Init method of the form and after TextBoxes has some values:
thisform.ChangeToolTip()

In Lost focus Event or in InterActiveChange event of the textboxes (TB4, TB24, TB13) put:
thisform.ChangeToolTip()

In Newly created method ChangeToolTip()
thisform.Text4.ToolTipText = TRANSFORM((thisform.text4.value-thisform.text24.value)/thisform.text13.value*100)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform