Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a comma-delimited memory variable
Message
De
05/05/2006 10:22:13
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
05/05/2006 10:02:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01119574
Message ID:
01119587
Vues:
33
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform