Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
>The problem is I have hundreds of forms with multiple pages and controls. All these forms and code has been working for years and was designed to save the current alias on entry and reset it on exit. This all worked fine until I started using grids to display rows of data instead of a list control. It looks like this problem only occurs with the grid control.
In an event driven environment, you can NEVER be certain what the alias is, so code accordingly. A timer could fire, which changes the alias and forgets to put it back. Subsequent methods should be unaffected.
So, in each method, remember the current alias, select the expected alias, do what needs to be done, reset the alias.
There have been many classes created that remember and reset such settings.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement