Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the TooltipText of a TextBox.
Message
De
10/04/2008 11:12:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Setting the TooltipText of a TextBox.
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01309710
Message ID:
01309710
Vues:
71
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform