>>
>>You can easily get full object hierarchy on the fly with
>>
>>cFullGridHierarchy = SYS(1272, this)
>
>Nick it did not like the cFullGridHierarchy statement as I dont think the form is fully init'd at that point. But if I changed the above code to:
>
>lcFullGridHierarchy = ALLTRIM(SYS(1272, THIS))
>lcFullGridHierarchy = 'THISFORM'+SUBSTR(lcFullGridHierarchy,AT('.',lcFullGridHierarchy),LEN(lcFullGridHierarchy))
>
>Thus replacing the form name in the cFullGridHierarchy to THISFORM, then the DynamicBackColor statement took OK.
That's absolutely right, I forgot to mention this. It is always better to address through THISFORM.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison