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--