Page 1 of 1

ExecuteCommand

Posted: Mon 3. Mar 2014, 14:14
by PMJ
Hi,
i have problem with ExecuteCommand"macrostop". When i use this command every time i've crash of PCAN explorer. I use it in VBs macro. For other commands it's work great.
Do have any ideas why?

Re: ExecuteCommand

Posted: Mon 3. Mar 2014, 15:31
by PEAK-Support
please send us a e-mail with your used PE Version and SerNo, incl. the "MACRO" to support[at]peak-system.com.
Without more information about OS Version, PE Version , used HW etc. we could not gave any answer.

Re: ExecuteCommand

Posted: Tue 4. Mar 2014, 09:12
by PEAK-Support
You are right! when using

Code: Select all

 ExecuteCommand "macrostop"
it will try to destroy the Scripting Engine itself, which could not work because it´s still in a called function (the function itself!)

To stop the Macro please use „Exit Sub“