IF "." $ This.ControlSource lcAliasOrObject = JUSTSTEM(This.ControlSource ) IF USED(lcAliasOrObject) * a table/view/cursor lcDbc = CURSORGETPROP("Database", lcAliasOrObject) IF NOT EMPTY(lcDbc) Set Database To (lcDbc) ... ENDIF ENDIF ENDIF>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.
>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 >>