Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array To Memo Field
Message
De
27/08/2009 16:16:55
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
27/08/2009 13:35:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01421232
Message ID:
01421296
Vues:
79
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform