Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combine 2 DBF to a text file
Message
From
05/12/1999 15:56:53
 
 
To
05/12/1999 14:48:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00298932
Message ID:
00298934
Views:
23
>I have 2 dbf table each having different fields, type and lengths but have a common field CustID. My aim is to combine both table into a text file in the following order:-
>record 1 of table 1 followed by record 1 to 4 of table 2
>record 2 of table 1 followed by record 5 to 6 of table 2
>record 3 of table 1 followed by record 7 to 9 of table 2
>
>I tried copy to textfile type sdf but I couldn't get what I wanted. Please help. Tks

I guess you may better scan table1 (i hope it's not too big), seek in table2 and combine everything to string variable. When it's finished use STRTOFILE() function to create text file from the variable.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform