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 16:55:03
 
 
To
16/03/2006 16:45:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01105063
Message ID:
01105099
Views:
30
>All my forms already use a private datasession. The problem is that the current alias has been changed automaticly by anyone of the grid events. Even changing the column width changes the alias automaticly.
>
>There are times when I wan't the grid to have the focus while the user interacts with it but I don't wan't it to automaticly change the alias to its recordsource because another controls event can fire if it was queud by windows or if the user moves the mouse around.
>
>Does anyone 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?

You might try saving the current selected alias in each form's deactivate event; on the activate event reset the selected alias. If these can be fired independent of the selection of forms (like due to a timer event), then I would manage each form's alias at the _screen level via a custom property and then each code would have to get the alias from this custom property and set as current before processing.
Previous
Reply
Map
View

Click here to load this message in the networking platform