06-11-2023, 12:23 AM
Hi,
Usually, when I need to output variable information, I use the following Macro M1 method
Now, I want to define a function out2 , Output variable information in one line of code
But need to determine variable type, name, and value for each parameter, Is this possible?
Thanks in advance for any suggestions and hello
David
Macro M1
Macro M2
Function out2
Usually, when I need to output variable information, I use the following Macro M1 method
Now, I want to define a function out2 , Output variable information in one line of code
But need to determine variable type, name, and value for each parameter, Is this possible?
Thanks in advance for any suggestions and hello
David
Macro M1
int i1=1
int i2=2
str s1="t1"
str s2="t2"
ARRAY(str) as="a[]b[]c"
out F"i1:[]{i1}[]"
out F"i2:[]{i2}[]"
out F"s1:[]{s1}[]"
out F"s2:[]{s2}[]"
out "as:"
out as
Macro M2
int i1=1
int i2=2
str s1="t1"
str s2="t2"
ARRAY(str) as="a[]b[]c"
out2 i1 s1 i2 s2 as
;i1:
;1
;
;i2:
;2
;
;s1:
;t1
;
;s2:
;t2
;
;as:
;a
;b
;c
Function out2