hallo
I build a macro -- ver1 -- with call a parameter -- ver1para -- type byte.
If i call this macro with parameter -- 5 -- after steep over the ver1para is 5.
This is working ok.
I do the thame with a parameter -- ver1para[6] -- type string.
If i call this macro with parameter -- "b1_0_on" -- after steep over the
ver1para is "" , not "b1_0_on" in the watch window.What going wrong?
wolfgang
string variable
-
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
- Contact:
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
This is a known bug where user macros do not accept a "string literal" as a parameter.
This has been fixed - but the fix has not been released yet. It will be included in the next update of the software.
There is a workaround:
User macros accept a string variable as a parameter, so create a string variable and set it to your literal string before passing it to your macro.
So, instead of doing this:
do this:
This has been fixed - but the fix has not been released yet. It will be included in the next update of the software.
There is a workaround:
User macros accept a string variable as a parameter, so create a string variable and set it to your literal string before passing it to your macro.
So, instead of doing this:
Code: Select all
Call Macro <MyMacro> with parameter "hello"
Code: Select all
Set String Variable <s> to "hello"
Call Macro <MyMacro> with parameter <s>