Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't update a grid from the Refresh metod...
Message
De
23/10/1999 10:34:25
 
 
À
23/10/1999 10:27:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00280411
Message ID:
00280412
Vues:
14
>As some of you might noticed I have posted a couple of message the last few days with problem I have with making a grid look like a listbox. Finally after many hours I have now got it to work exactly the way I wanted. The last problems I worked with was the error from DynamicBackColor and DynamicForeColor, and that was a hard one to solve... To solve it I had to remove all my updatecode for the grid-table from Thisform.Refresh to a new method (Thisform.UpdateGridList) which I only call when necessary. So now I wonder if it's even possible to have code that manipulate grid tables in the refresh method?
>
>As I look back on many of my problems with grids it's always simple code that in someway manipulate the grid table in the Refresh method the couses the most strange things to happend. Has anyone else have the same problems with grids and the refresh method?
>
>/Mårten Törnquist

Basically, putting something in Refresh method is bad practice, because this method will happen too often with no user knolwedge or control. Logically, a developer should use events (and not methods) as a place to include/call own code.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform