Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cycle through all controls on a form
Message
From
29/03/1999 19:04:55
 
 
To
27/03/1999 01:24:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00202262
Message ID:
00203241
Views:
28
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform