Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to quickly look at Memo files, converting table to a
Message
De
16/01/2013 19:25:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01563035
Message ID:
01563064
Vues:
41
Try using SCATTER MEMO TO laArray in a SCAN-ENDSCAN loop. This gives each of the fields into an array which then can be directed to a file:
lcOutput = ""
SCAN FOR !DELETED()
   SCATTER MEMO TO laArray
   FOR lnNdx=1 TO ALEN(laArray,1)
      lcOutput = lcOutput + laArray[lnNdx] + CHR(9)
   ENDFOR
   lcOutput = lcOutput +CHR(10) + CHR(13)
ENDSCAN
FILETOSTR(lcOutput, "MyFile.txt")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform