>Your explanation that BeforeOpenTables is an event and OpenTables is a method makes things more clear. Perhaps if we knew what the Fox developers had on their mind as they organized all this it would be more intuitive. Something like why this has to go before that.
Alejandro,
Once you know it it is pretty simple. BeforeOpenTables means before the tables are opened not before the OpenTables method is called. The OpenTables method opens the tables, however it runs your code before it opens the tables and then, just before the tables are actually opened, the BeforeOpenTables event fires.