UI with VBScript Macro or Strandard Macro

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: UI with VBScript Macro or Strandard Macro

Post by M.Heidemann » Fri 19. Apr 2024, 14:50

To add to this, some information from our development-team:

the stack overflow is correct, as it recursively calls Call SendParameters again and again and each time a return address is placed on the internal stack.

At the end of the "subroutine" called with Call, it uses "Repeat", whereby the macro jumps back to the beginning and calls Call again. And again and again...
Instead of "Repeat", one must call "Return" at the end of his subroutine, then the stack is also reduced.
To repeat everything, "Repeat" needs to come directly after Call. A branch or another return must also be placed there, otherwise the program would run back into the code of the subroutine after the return from Call.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

epignosi
Posts: 11
Joined: Thu 23. Feb 2023, 16:48

Re: UI with VBScript Macro or Strandard Macro

Post by epignosi » Tue 23. Apr 2024, 09:07

Hello,

It is working very well if I don't use a label.

Thank you.

Best Regards

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: UI with VBScript Macro or Strandard Macro

Post by M.Heidemann » Tue 23. Apr 2024, 09:09

Hi,

thank you for letting us know!

- closed -
---
Marvin Heidemann
PEAK-Support Team

Locked