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 1:17PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.