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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement