CreateOleObject-Funktion

Hello!
The CreateOleObject Funktion works fine with the right parameter:
Example: Variant Excel = CreateOleObject("Excel.Application");

When i write TExcel.Application,
i will become an error Message, because the Argument is wrong.

However, Fastscript will compile the Script.

Is there any possiblilty, to prevent error Messages of that kind?
An error Event or something like this...

Thanks for the answer!

Comments

  • edited 8:10PM
    It's not a compile-time error, it can't be catched in the FS compiler. Use try..except inside the script to catch this error.

Leave a Comment