Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cycle through all controls on a form
Message
De
29/03/1999 19:04:55
 
 
À
27/03/1999 01:24:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00202262
Message ID:
00203241
Vues:
25
>>Is it possible to cycle through all text box controls on a form and set their tooltip property based on the field comments defined in the DBC?
>>
>>TIA
>
>Don't cycle through them, let your textbox class do it in it's init event:
>
>IF MEPTY(THIS.toolTipText) AND !EMPTY(THIS.ControlSource)
>    THIS.ToolTipText = DBGETPROP(THIS.ControlSource, "Field", "Comment")
>ENDIF
>
Thanks Eric, I tried this code and got the error No database is open or set as the current database. I have the database open ( Hmmmm )

I can referene the "Comment" property of the text box because I dragged it onto the form and "copy field comments" is set in options... but if I change the comments, it won't show up in my tooltip... Any ideas?

Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform