Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a duplicate record
Message
From
25/01/2005 15:27:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00980488
Message ID:
00980516
Views:
22
I would use SCATTER NAME and GATHER NAME. The object thus created can easily be manipulated, for instance, to have a unique PK.

>how do I create a duplicate record in a table. The table does have memo fields. Also this table has a default value that creates a primary key (for example nextid("fscgnt_tbl"). I also need to modify one field while duplicating the record. I thought about selecting the record into a cursor, then modifying the single field and then writing it out, but I also have a child table where where I may need to gather several records at a time and need a single field changed on those records. I don't know if scan...endscan is best way to go about or is there another more efficient technique?
>
>thanks
>Nick
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform