Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM: Grid changes my currently selected area/alias
Message
De
16/03/2006 17:16:04
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
16/03/2006 17:03:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01105063
Message ID:
01105119
Vues:
35
>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
Fil
Voir

Click here to load this message in the networking platform