Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlighter Destroy Method Returning Errors
Message
De
11/10/2001 09:22:35
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00566889
Message ID:
00566901
Vues:
19
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform