>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.