Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the APPEND FROM with variables
Message
 
 
To
06/10/2003 05:28:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00835283
Message ID:
00835306
Views:
14
IF NOT ("." lcFileName)
  lcFileName = lcFileName + "."
ENDIF
APPEND FROM (lcFileName) TYPE SDF
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform