Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String parsing
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00273042
Message ID:
00273063
Views:
27
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform