Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with APPEND FROM
Message
 
To
26/06/2002 15:57:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00672611
Message ID:
00672662
Views:
8
I was afraid this would be my result... C'est la vie!

Yup, VFP3 has STRTRAN(), but not ALINES(). No sweat. Personally, I would have liked it if the ...WITH DELIMITER... part worked.

Thanks.

- GWW

>Gerry,
>
>I would read through the file using low-level functions (fopen(), fgets(), etc.), and split the line into fields. I would most likely bust the line it into an array, APPEND BLANK, and then do a REPLACE statement.
>
>In VFP3 do you have STRTRAN() and ALINES() functions?
>
>
>>HDEM|Household demographics|HDEMHHSIZE|Household size|S|HDEMHHSIZE1|One|2|10|1|90|1|1| |
>>HDEM|Household demographics|HDEMHHSIZE|Household size|S|HDEMHHSIZE2|Two|2|10|2|90|2|1| |
>>
>>It's an SDF file that uses '|' as its delimiters. I've copied two lines of it above. -- gww
>>
>>>Can you post a sample of what the file looks like?
>>>
>>>>Poop... Thanks. I must have tested the code using VFP 6.
>>>>When I enter APPEND FROM (lcIncoming) DELIMITED WITH | at the command line, it ignores the vertical bar and puts everything into one field. So much for my delimiter. Any suggestions?
>>>>
>>>>Thanks for your help, Steve.
>>>>
>>>>- GWW
>>>>
** Gerry White / Hagerstown, MD, USA --
** Developing since 1986 in Foxpro, VFP, Oracle, and Java.
** http://GerrysPlace.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform