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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only