Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
READ EVENTS
Message
De
03/04/2001 07:04:46
 
 
À
02/04/2001 10:03:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00490915
Message ID:
00491242
Vues:
8
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform