Hi Gintaras,
if I pass an ARRAY(str) variable to a function, it works fine with receiving function written as
function ARRAY(str)'arrTest
or
function ARRAY(str)&arrTest
depending on whether I am returning any values back to the calling function.
However, if I call it as a mac using function ARRAY(str)'arrTest (because it can't wait for return), it says:
'parameters must be of intrinsic or pointer types.'
note, I am calling the mac as:
mac "RecevingFunc" "" arrTest
I have read the forum on this and this is one of the toughest areas of programming for me.
If just uni-dimensional array, I could just change it to string collection but harder if multi-dimensional.
Any pointers on how to do this? (that was a pun!)
Seriously, any help appreciated!
Thanks, S
Macro Macro10
Function ReceiveArrayAsMac
if I pass an ARRAY(str) variable to a function, it works fine with receiving function written as
function ARRAY(str)'arrTest
or
function ARRAY(str)&arrTest
depending on whether I am returning any values back to the calling function.
However, if I call it as a mac using function ARRAY(str)'arrTest (because it can't wait for return), it says:
'parameters must be of intrinsic or pointer types.'
note, I am calling the mac as:
mac "RecevingFunc" "" arrTest
I have read the forum on this and this is one of the toughest areas of programming for me.
If just uni-dimensional array, I could just change it to string collection but harder if multi-dimensional.
Any pointers on how to do this? (that was a pun!)
Seriously, any help appreciated!
Thanks, S
Macro Macro10
str strTestColl = "a[]b[]c[]d[]e[]f[]g"
ARRAY(str) arrTest = strTestColl
mac "ReceiveArrayAsMac" "" arrTest
Function ReceiveArrayAsMac