Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append From - comma delimited
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00748363
Message ID:
00748381
Vues:
13
Kalim, use
APPEND FROM test.txt DELIMITED && no "WITH ," required
>Hi folks
>
>I'm having a bit of a problem with APPEND FROM and was wondering if its my understanding or a problem with VFP...
>
>I have a test text file with the following
>
>1,2,3
>1,,3
>
>which I want to import into a cursor with fields a,b,c so I do
>
>APPEND FROM test.txt DELIMITED WITH ,
>
>The first line is fine but the second line imports as
>a=1
>b=3
>
>whereas I would have thought (and want) :
>a=1
>b = blank
>c = 3
>
>Basically if there is no value for the field then the text file will just output a comma instead of value and comma.
>
>Its fine if the data is "" delimited
>
>Any ideas would be appreciated...
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform