Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merging multiple records into one
Message
 
 
To
13/07/2006 13:17:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01136022
Message ID:
01136123
Views:
15
Frank,

>I'll see if I can understand what the code is doing. At this point in time I don't know the size of the tables I'll be dealing with either.

it scans your table to merge in order of the key field, it uses laData to hold all the merged columns until the key field changes then it pushes the laData array out to the new destination. if the key field is the same it just stuffs the non-empty values for the 2nd through Nth rows (via the laAddRow array) over the top of the laData element. Now if you have multiple rows that have values for field2 the last non-empty one wins, that may or may not be what you want.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform