Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I import a text file without using import wizard
Message
From
18/02/2003 07:57:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00754401
Message ID:
00754405
Views:
15
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I need to import text files (they are email body text) into a memo field of a database. The names and full path of the files are held in an array.
>
>I have tried to do a low level open
>
>store alltrim(attach(x)) to filex
>gnErrFile = FOPEN(&filex)
>
>I get the error 'finction name is missing )'
>
>Where is my mistake. Is there any other way of achieving what I need to do?
>
>Thanks
>
>Colin Northway

Something like :
create cursor eMails (myMails m)
lnFiles = adir(arrTextFiles, 'textfilespath\*.extension')
for ix = 1 to lnFiles 
 append blank
 append memo myMails from ('textfilespath\'+arrTextFiles[ix])
endfor
PS: Fopen() expects a character parameter.
gnErrFile = FOPEN(filex)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform