Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MORE THAN A TOOL TIP TEXT PROPERTY
Message
De
23/07/1998 09:48:27
 
 
À
23/07/1998 09:35:20
Zaraq Bari
Bari Studios Limited
Lahore, Pakistan
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00120403
Message ID:
00120409
Vues:
19
>I have written this code for a command button TOOLTIPTEXT property:
>
>=cdow(date)()+','+mdy(date)()
>
>and I get the following:
>Thursday , July 23 , 98
>
>I don't get the century as 1998.
>Do I have to SET CENTURY ON ?
>And if I do then where.......in the forms init event or the command button's event?

Surely, you can SET CENTURY ON for whole form, i.e. from LOAD to UNLOAD event, but it may interfere with other form/controls behaviour. IMO, the better way is to set tooltiptext property to custom method:
Button.Tooltiptext=thisform.gettooltip()
***Form,Getttoltip method
local cCenturystatus,cRetvalue
cCenturystatus=set("century")
set century on
cRetvalue=cdow(date)()+','+mdy(date())
set century off
return cRetvalue

>Now this result made me more ambitious and I tried to write this code in the Grid's ToolTipText property:
>
>=reccount(mytable)
>
>to get the number of records in the grid , but it showed nothing.Can this be done ? The Data Environment table has the mytable in it.And the form opens with mytable opened in the grid.What am I doing wrong ?

Firstly, reccount returns integer, and you need in character: ALLTRIM(STR(reccount()))

>Also the grid has a date textbox.What I want to do is whenever the user places the mouse cursor on a particular record in the date textbox , the day i.e. Monday etc , is shown in the ToolTips.

Use Textbox.Tooltiptext property
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform