12-16-2010, 04:52 PM
With macro1
---------
out
str cl="This is a test my cute yes."
;str cl="''c:\xx xx\yyy.exe'' /A /B"
ARRAY(str) a
ParseCommandLine(cl a)
int i
for i 0 a.len
,out a[i]
----------
I get this output
This
is
a
test
my
cute
yes.
But with this macro2
out
str cl="This is a "test my" cute yes."
;str cl="''c:\xx xx\yyy.exe'' /A /B"
ARRAY(str) a
ParseCommandLine(cl a)
int i
for i 0 a.len
,out a[i]
I get this error output instead
Error in Testparamter with quote: missing ( after function name, or ; after statement.
Is it possible to get this output below with the above macro2 code? :?:
This
is
a
test my
cute
yes.
I'm trying to get the same parameter commands just like using a batch file or vbscript.
If possible I also would like to counter for the number of arguments passed and also error to cater if no arguments passed.
Thanks.
---------
out
str cl="This is a test my cute yes."
;str cl="''c:\xx xx\yyy.exe'' /A /B"
ARRAY(str) a
ParseCommandLine(cl a)
int i
for i 0 a.len
,out a[i]
----------
I get this output
This
is
a
test
my
cute
yes.
But with this macro2
out
str cl="This is a "test my" cute yes."
;str cl="''c:\xx xx\yyy.exe'' /A /B"
ARRAY(str) a
ParseCommandLine(cl a)
int i
for i 0 a.len
,out a[i]
I get this error output instead
Error in Testparamter with quote: missing ( after function name, or ; after statement.
Is it possible to get this output below with the above macro2 code? :?:
This
is
a
test my
cute
yes.
I'm trying to get the same parameter commands just like using a batch file or vbscript.
If possible I also would like to counter for the number of arguments passed and also error to cater if no arguments passed.
Thanks.
