09-07-2008, 08:05 PM
Hi,
I'm trying to create a simple utility macro to receive a list of variable names and incorporate them into formatted lines for output/logging, like so :
..so I can just copy and paste the QM output into a macro.
I have been unsuccessful in my attempts to escape the char sequence "%s" so it shows up as is in the QM output. In other words, I need a plain text version of "%s" (i.e. not processed) to appear where indicated in the below macro.
Macro
Thanks,
S
I'm trying to create a simple utility macro to receive a list of variable names and incorporate them into formatted lines for output/logging, like so :
..so I can just copy and paste the QM output into a macro.
I have been unsuccessful in my attempts to escape the char sequence "%s" so it shows up as is in the QM output. In other words, I need a plain text version of "%s" (i.e. not processed) to appear where indicated in the below macro.
Macro
str outform
if(!inp(outform "" "" "[]")) ret
ARRAY(str) a=outform
int i
for(i 0 a.len) out "out ''%s = <need to insert escaped percent+s here>'' %s" a[i] a[i]
Thanks,
S