Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String parsing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00273042
Message ID:
00273063
Vues:
26
>I have a string I will fget from a file that looks like this...
>"Joe",6.34,"This is a test",11.34
>
>With VB this was very easy to read like this...
>
>Input #1, Name,PayRate,Comment,OTRate
>
>I was going to read in the whole line and
>use a for loop to take data up to the commas.
>Is there an easier way to read or parse this
>with VFP 6.0?

You could do the following:
CREATE TABLE EmployeeRates (Name C(30), PayRate N(10,2), Comment C(30), OTRate N(10,2))
APPEND FROM YourFileName.txt TYPE DELIMITED

If your file has only the above data you will get one record in the table with your data.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform