Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy to
Message
 
À
09/12/2004 15:18:07
Todd Brown
Teachers Credit Union
Granger, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00968105
Message ID:
00968149
Vues:
8
>We want to copy a file , delimeted with the header row.

In addition here an example, but it not working well if you have some TABs in fields:
IF SELECT("YourTableAlias") == 0
   USE YourTable ALIAS YourTableAlias IN 0
ENDIF
c_title = ""
FOR asd = 1 TO FCOUNT()
    c_title = IIF(asd==1,"",";")+FIELDS(asd)
NEXT
_VFP.DataToClip("YourTableAlias",,3)
c_title = c_title + +CHR(13)+CHR(10)+STRTRAN(_cliptext,CHR(9),";")
STRTOFILE(c_title,"Text.TXT")
****** Update

There is no need to run the Cikle
IF SELECT("YourTableAlias") == 0
   USE YourTable ALIAS YourTableAlias IN 0
ENDIF
_VFP.DataToClip("YourTableAlias",,3)
c_title = c_title + +CHR(13)+CHR(10)+STRTRAN(_cliptext,CHR(9),";")
STRTOFILE(c_title,"Text.TXT")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform