Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ONE FOR THE EXPERTS - Appending lines with different for
Message
From
14/05/1998 16:38:43
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
13/05/1998 02:07:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00098397
Message ID:
00099589
Views:
58
>>use table1
>>append from incoming.sdf type sdf for c1="A"
>>use table2
>>append from incoming.sdf type sdf for c1="B"
>>
>>...etc. Unless you have to do this often (whereas this should be in a .prg), you can issue this in the command window.
>Dragan,
>Really cool. Before I never thought I could do this with an SDF data.
>Cetin

Some additional notes to this, from my (seemingly large, but at least long) experience with this type of data manipulation:
- If a row in the sdf file is shorter than the total length of the fields, the remaining fields are blank.
- If it's longer, the remainder of the row is ignored.
- If it contains null bytes, it behaves as if it is shorter, i.e. the remainder of the fields to the right of the null character will be blank.
- Legal line delimiters are cr, lf, crlf, but can't be sure of ff. I remember it misbehaved somehow in some versions of Fox.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform