Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PROBLEM: Grid changes my currently selected area/alias
Message
From
16/03/2006 17:16:04
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
16/03/2006 17:03:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01105063
Message ID:
01105119
Views:
44
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform