>Is there a relatively simple way to take the contents of an array and store them in a Memo (or some other type of) field?
>
>At the moment, I'm trying to work with the results of ASTACKINFO and am stuck with converting each element to string and adding as a new line. I'm hoping there's a better way.
I much appreciate if I can read the stack without any other software but just doubleclicking the memo. So here's what I put there:
astackinfo(astk)
lcStack=""
lcHere=FULLPATH("")
FOR i=1 TO ALEN(aStk,1)-1
lcLine=TEXTMERGE('<<TRANSFORM(aStk[i,1],"999")>> <<aStk[i,3]>> in <<SYS(2014,aStk[i,2], lcHere)>> '+;
+0h0d09+'line <<TRANSFORM(aStk[i,5], "9999")>>: <<aStk[i,6]>>')+0h0d
lcStack = lcStack + lcLine
ENDFOR
return lcStack