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. Remember, OpenTables() is not an event. It's a method.
Alan
>Hi,
>
>PREFACE: a event with name BeforeOneEventName must occur before of the OneEventName.
>
>I see a very strange choice for Dataenvironment Event names and sequence of they events.
>
>On a Dataenvironment the sequence of events is:
>1° OpenTables
>2° BeforeOpenTables
>
>this fact conflicting with events name
>and this sequence is useless because i have never event after
>that the Dataenvironment have load cursors automatically.
>
>A useful sequence is:
>
>BeforeOpenTables
>* Now DataEnvironment load the cursors automatically
>OpenTables
>
>
>Fabio