RememberWindow vs .Initialize

If a file contains an Initialize procedure, it prevents the script below from successfully running.

OpenFile “OtherDB”

If the OtherDB does not contain an Initialize procedure it runs fine. If the OtherDB does contain an Initialize procedure, it stops on the newly opened db without returning to the original db even if the Initialize procedure has nothing or just a nop. If the OtherDB is already open, the procedure returns to the original window as desired.

Panorama is waiting for the procedure that opened the file to end before running the .Initialze. When it does run it, it also makes that database active, so what is happening is that it opens the other DB, then returns to the original window, then returns to the other DB to run its .Initialize.

According to the online Help file, that doesn’t seem to be the case with the next version.