Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building a string
Message
 
 
À
05/04/2010 13:23:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01458765
Message ID:
01458767
Vues:
58
>Hi All,
>
>I need to build a string of tab delimited fields from a table. I have been using something similar to:
>
>
>cMyString = ""
>
>SCAN 
>
>  cMyString = m.cMyString + myTable.Field1 + CHR(9) + myTable.Field2 + CHR(9) + CHR(13)
>
>ENDSCAN
>
>
>Is there a faster way such as, for example, using TEXTMERGE?
>
>TIA

Yes, textmerge is going to be faster. Or fwrite (fput).

Even strtofile(lcMyString, 'c:\myFile.txt',.t.) is going to be faster, I think.

And also you may want to use COPY to command.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform