Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Known the last datasession
Message
From
12/06/2005 13:03:36
 
 
To
11/06/2005 18:07:06
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01022522
Message ID:
01022599
Views:
11
>Specific:
>At design time:
>- click into a Toolbar's button, the toolbar alive into a private datasession.
>- on the Button.Click I must know the datasession active before the button's Mousedown.
>
>General:
>when active a datasession private, because of input a user
>(change form,toolbar,debug suspend a session code ...),
>is possible to know the previous datasession ?
>
>My answer is not, but I always hope in the providence.
>
>Thanks
______________________________________________________________________
Fabio,

I've been thinking. How do you define the datasession active before the button's Mousedown ?

Say that you have two forms active
Form 1 has the focus (can be reached with _screen.ActiveForm)
Form 2 does not have the focus, but has a timer executing that operates in the form's private datasession

If the timer in form 2 executes, which one of the two has the active datasession ?

If it is the former you can use _screen.ActiveForm. If it is the latter, then I don't know an answer to your question
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform