02-13-2019, 02:41 PM
In QM it is not easy.
Macro Macro321
But it cannot be used if ReceiveArrayAsMac runs in separate process. Then need to serialize/deserialize the array somehow, for example convert to/from string.
Macro Macro321
str strTestColl = "a[]b[]c[]d[]e[]f[]g"
ARRAY(str) arrTest = strTestColl
mac "sub.Thread" "" arrTest.psa
arrTest.psa=0
#sub Thread
function SAFEARRAY*p
ARRAY(str) arrTest.psa=p
out F"arrTest.len: {arrTest.len}"
for _i 0 arrTest.len
,out F"{_i}: '{arrTest[_i]}'"
But it cannot be used if ReceiveArrayAsMac runs in separate process. Then need to serialize/deserialize the array somehow, for example convert to/from string.