Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Highlighter Destroy Method Returning Errors
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00566889
Message ID:
00567066
Views:
15
It is already in the next version. :)

>Well, the simple way to just check for an existance of this grid in GHL destroy method, what do you think? Just be a little bit more precautios :)
>
>>>>>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,
>>>
>>>That was it! I had brought the Grids forward recently. I had no idea that using the Format options changed the instantiation of objects! Hmmmm... This might explain a couple other things I've got going on. Thanks!
>>>
>>>Renoir
>>
>>Yes, similar things may happen with other stuff too. for example the correctusage of the Treeview control requires that ImageList control for it is placed on the form before the Treeview.
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