Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timers - changing current area?
Message
From
19/05/2004 22:30:38
 
 
To
19/05/2004 04:38:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00905175
Message ID:
00905482
Views:
15
Bill,

>>Can anyone tell me if timer events are 'modal'?

I have had a similar problem with a timer created as a _Screen object, in a project where all forms use private DataSessions. Although the timer should be in the default global DataSession, in fact it appears to be in DataSessionID = 1 DataSession, which varies depending on which forms are opened when.

The advice I have been given over in Compuserve was to either open any necessary tables in the Timer event using USE ... AGAIN SHARED or use ASESSIONS() and AUSED() to determine which DataSession already has the required tables open and SET DATASESSION to that DataSession.

I am opting for the USE ... AGAIN SHARED approach, but still need to do a lot of testing to determine if it will be robust.

David
Previous
Reply
Map
View

Click here to load this message in the networking platform