Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataenvironment strange event names and sequence
Message
De
15/01/2004 14:23:24
 
 
À
15/01/2004 13:15:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00867199
Message ID:
00867244
Vues:
18
hi Alan,

>>>>>>>>>>>>>>>>>>
I'm a bit confused Fabio. The way it has always worked for me is that when I call OpenTables(), the BeforeOpenTables() event fires and whatever code I have in there runs before the tables are opened. That makes sense to me.

Exact is:
.. I call OpenTables() and if NODEFAULT is not found, after!!! BeforeOpenTables() event fires.

> Remember, OpenTables() is not an event. It's a method.

this is not true ( read Help )
With AutoOpenTables = .T., OpenTables() it is a Event
- VFP call OpenTables() automatically before form.load() event
- if NODEFAULT is found the process is cut, otherwise
- BeforeOpenTables is fired
( on BeforeOpenTables NODEFAULT and RETURN .F. is ignored !! another bug )

With AutoOpenTables = .F. VFP not call OpenTables() automatically.

Then the only useful for OpenTables is the NODEFAULT behaviour,
but if NODEFAULT it was considered in BeforeOpenTables,
the Opentables it would be useless.
Instead, a very usefull AfterOpentables event not exist
(example: for build temporary work areas with SELECT FROM opentables)

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform