Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a comma-delimited memory variable
Message
From
05/05/2006 10:22:13
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
05/05/2006 10:02:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01119574
Message ID:
01119587
Views:
30
Beautiful! I was looking for some sort of function like FileToStr for memory variables, but this worked like a charm! Ok, I had to move the TCR_LF outside the FOR loop, but that was it. Thanks!

>Put this in a loop for the records required:
>
>
>TCR_LF = CHR(13)+CHR(10)
>TSTR = ''
>FOR I = 1 TO FCOUNT()
>
>  TSTR = TSTR + '"' + TRANSFORM( EVALUATE( FIELD(I) ) ) + '"' + IIF( I < FCOUNT(), ',', '' ) + TCR_LF
>
>NEXT
Previous
Reply
Map
View

Click here to load this message in the networking platform