Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the APPEND FROM with variables
Message
De
06/10/2003 06:53:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/10/2003 05:28:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00835283
Message ID:
00835292
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform