Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing in text file or Excel file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01211612
Message ID:
01211686
Vues:
18
>I want to replace data alos in text file or in excel file.. Which is best text or excel file.
>When dbf courpeted me be date can read form file.
>And it is possibel to replce in text file and record in first line and other in scond line ........
>thanks

Try this
CLOSE DATABASES ALL
SET SAFETY OFF 
CREATE TABLE Test (firstfld I, SecondFld C(20))
INSERT INTO Test VALUES(10,[Ten])
INSERT INTO Test VALUES( 2,[Two])
INSERT INTO Test VALUES( 1,[One])
INSERT INTO Test VALUES( 9,[Nine])

lcxls = PUTFILE([],[example_xls],[xls])
IF NOT EMPTY(m.lcxls)
   COPY TO (m.lcxls) XLS
ELSE
   MESSAGEBOX([XLS - No path])
ENDIF

lctxt = PUTFILE([],[example_txt],[txt])
IF NOT EMPTY(m.lctxt)
   COPY TO (m.lctxt) SDF
   *** or
***COPY TO (m.lctxt) DELIMITED
ELSE
   MESSAGEBOX([TXT - No path])
ENDIF
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform