>>I'm using Nick Neklioudov's grid highlighter class in a form. The highlighter work fine, however when I exit the form, I get an error that says: Property GRID1 is not found. Debug shows that this error is occurring in the destroy event of the Grid Highlighter class. Any ideas on what I'm doing wrong?
>>Thanks!
>
>Hi Ken,
>
>Is it the latest GHL version 3.8.1?
Do you by any chance destroy your grid before you close the form?
The code in GHL destroy is:
lcHost = THIS.cHostname
WITH THIS.PARENT.&lcHost.
.SetAll("DynamicBackColor", [''], "Column")
.SetAll("DynamicForeColor", [''], "Column")
.SetAll("DynamicFontBold", [''], "Column")
ENDWITH
so, if your grid1 does not exist by that moment (which should not happen as GHL should be added to the form after the grid) it should give the error.
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