Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the TooltipText of a TextBox.
Message
From
10/04/2008 11:12:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Setting the TooltipText of a TextBox.
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01309710
Message ID:
01309710
Views:
70
I want to set the TooltipText of my textbox class to the comments property of the field of the ControlSource, but I need to check if the control source is actually a field of a table/view in a database.

This is what i have so far:
If Empty(This.ToolTipText) Then
	If "." $ This.ControlSource Then
		Set Database To (CursorGetProp("Database",Getwordnum(This.ControlSource, 1, ".")))
		This.ToolTipText = DBGetProp(This.ControlSource,"Field","Comment")
	Endif
Endif
There are some checks missing in the above code, I need help with the following:

1. Determine if a controlsource is in fact a field in a table/cursor/view, or an object property or a variable.
2. If the controlsource is a field in a table/cursor/view, determine if the table/view is contained in a database

Thanks

Carlos Alloatti
Next
Reply
Map
View

Click here to load this message in the networking platform