>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
Else
EndIf
Hope this helps.
Alex