Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Expression result in ToolTipText
Message
 
To
25/07/2005 07:54:42
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035643
Message ID:
01035645
Views:
11
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform