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

See Re: Detecting field presence in dbf Thread #1244177 Message #1244275
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform