General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only