Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array To Memo Field
Message
From
27/08/2009 16:16:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
27/08/2009 13:35:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01421232
Message ID:
01421296
Views:
80
>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

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform