Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determing what an object is in.. i.e is it in a grid??
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00267662
Message ID:
00267929
Views:
20
>Hi Michael.
>
>>> How can I make the control code generic so that if it is on a form that it sets inGrid to .f. and if it is in a Grid to .t.? <<
>
>How about
>

>IF UPPER( This.Parent.BaseClass ) = 'COLUMN'
> inGrid = .T.
>ELSE
> inGrid = .F.
>ENDIF
>
Hi Marcia

Or...
inGrid = (UPPER(This.Parent.BaseClass) = "COLUMN")
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform