Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
READ EVENTS
Message
From
03/04/2001 07:04:46
 
 
To
02/04/2001 10:03:12
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00490915
Message ID:
00491242
Views:
9
>Hi All!
>
>I need to define - is READ EVENTS mode run or not.
>Is there the programmatic way to know this?
>
>I will be greatful for any idea.
>Sorry for bad English.
>
>Dmitry Belyaev

Dmitry,

Since there is no programmatic way to determine if READ EVENTS is in effect you may use some public variable that holds information about what does happen. For sample:
- if it is defined and contains .T., READ EVENTS is in effect;
- if it is not defined or contains .F., there is no READ EVENTS command in effect;

Before call READ EVENTS command in your first APP, define that public variable and store .T. to it, and right after CLEAR EVENTS store .F.. In another APP you may check that variable as follows:
If Type( "_READEVENTSINEFFECT") <> "U" And _READEVENTSINEFFECT
    && READ EVENTS command is issued
Else
    && no READ EVENTS in effect
EndIf
Hope this helps.
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform