Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the APPEND FROM with variables
Message
From
06/10/2003 06:53:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/10/2003 05:28:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00835283
Message ID:
00835292
Views:
12
>HI,
>
>I have this project which contains a number of forms.
>
>One of the forms displays a ListBox that contains filenames and a command button.
>
>The user selects a filename from the ListBox and then clicks the command button to continue.
>
>What happens is that the filename selected is stored to a variable and then the APPEND FROM command is used to append the data from the textfile to a table.
>
>Problem is that the command below generates an error as the filename does not have an extension.
>
>APPEND FROM (lcFileName) TYPE SDF
>
>The error returned is "Cannot find c:\import\FIRE-050.txt"
>
>Can anyone help?
>
>thanks,
>
>Jason Lawrie

If it doesn't have an extension then add dot to signify it :

Append From (lcFileName+'.') type sdf

Or in listbox filename is represented with a dot at end.
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
Reply
Map
View

Click here to load this message in the networking platform