Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid highlighter error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00549533
Message ID:
00549544
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform