Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import 80,000 lines of string to table
Message
 
 
To
04/07/2005 03:44:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028727
Message ID:
01028777
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform