Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determing what an object is in.. i.e is it in a grid??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00267662
Message ID:
00267929
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform