Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy text file line by line to memo field?
Message
De
10/07/2006 04:19:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to copy text file line by line to memo field?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01134853
Message ID:
01134853
Vues:
205
Hi all,

I have text files with lines of data and I wanted to copy them line by line to a memo field of a table, 1st line go to 1st record, 2nd line go to 2nd record. I have tried the following codes but somehow when the length of the line exceeds 50, it will append the following characters into 2nd record. Any idea?
CREATE CURSOR lctest (mdata m)
nline = MEMLINES(FILETOSTR(TRANSFORM(lcfile))) && lcfile = file name
	
FOR i=1 TO nline
   INSERT INTO lctest VALUES (MLINE(FILETOSTR(TRANSFORM(lcfile)),i))
ENDFOR 
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform