Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing array to mac - pointer issues
#2
In QM it is not easy.

Macro Macro321
Code:
Copy      Help
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.


Messages In This Thread
RE: Passing array to mac - pointer issues - by Gintaras - 02-13-2019, 02:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)