Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Highlighter Destroy Method Returning Errors
Message
 
To
11/10/2001 08:57:36
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00566889
Message ID:
00566898
Views:
18
This message has been marked as the solution to the initial question of the thread.
>Nick (or anyone watching),
>
>The class has started returning errors from it's Destroy event when I issue ThisForm.Release from my forms. Hitting Ignore gets through, but this is what's generated:
>
>
>Property MyGrid is not found.
>Expression is not valid outside of WITH/ENDWITH.
>Expression is not valid outside of WITH/ENDWITH.
>Expression is not valid outside of WITH/ENDWITH.
>WITH/ENDWITH mismatch.
>
>
>Not having the source, that's about all the information I have. Any ideas where I should look to resolve this? Not sure what I changed in my forms/framework, but I can't seem to get these errors resolved. Thanks!
>
>Regards, Renoir

Hi Renoir,

The code in Destroy() is:

lcHost = THIS.cHostname
WITH THIS.PARENT.&lcHost.
.SetAll("DynamicBackColor", [''], "Column")
.SetAll("DynamicForeColor", [''], "Column")
.SetAll("DynamicFontBold", [''], "Column")
ENDWITH

The possible reason that the order of destroying changed. When GridHighlighter.Destroy() fires the grid seems does not exist already.
Since GHL supposed to be placed on the form after your grid, normally it is destroyed before the grid. Probably you changed the order of instantiation later by using Send To Back/Bring To Front for GHL or grid. Try to play with Send To Back/Bring To Front.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform