Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM: Grid changes my currently selected area/alias
Message
 
 
À
16/03/2006 17:11:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01105063
Message ID:
01105182
Vues:
25
>I understand that using a different datasession for processing would isolate my code from the automatic grid change but its not an option for me since I have hundreds of forms with multiple pages and controls. All these forms and code have been working for years and were 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.
>
>Does anyone else know how to prevent the grid from automaticly changing the current alias to its own recordsource?
>
>Or does anyone have an idea on how to detect the automated alias change so I can reset it?
>
>Or is there a way to reliably intercept all the grid events which could change the alias?
>
>Thanks.

Basically, the only other option left is to explicitly specify alias for each command that allows it. E.g. REPLACE ... IN Alias, etc. In other words, your processing code should make sure you're sitting on the right alias...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform