>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