Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import 80,000 lines of string to table
Message
 
 
À
04/07/2005 03:44:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01028727
Message ID:
01028777
Vues:
12
John,

>How to use APPEND FROM to import the 300 characters to memo field?

If each line contains only the memo field content:
create cursor temp1 ( c1 c(254), c2 c(254) )
append from TheTextFile.txt type sdf
select temp1
scan
   if empty( c2 )
      insert into FinalResult ( TheMemoField ) values ( rtrim( c1 ) )
   else
      insert into FinalResult ( TheMemoField ) values ( c1 + rtrim( c2 ) )
   endif
endscan
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform