Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append From doesn't behaves as said in help file?
Message
From
30/05/2001 11:18:39
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00512674
Message ID:
00512689
Views:
19
>Huh ??? I remember struggling with this about a year ago. I mean, I wanted it to work like you describe but couldn't come to that. And the Help on it was clear enough. What did you do in order to let it work like this ?
>What version do you use (I have VFP5 no SP).
>
>curious ...

using vfp6sp4

just tried a few things...
the append will respect the state of set deleted, sort of. if records are marked deleted and SET DELETED OFF, then all records are copied, and the taget table will maintain the deleted flag. if SET DELETED ON, the deleted recored are not copied at all ( not there ever if changing to SET DELETED OFF ).

one way to obtain the resaults you seem to request is :

nLastrecno = recno("targetTable") && store last recno in table
cLastDelState = set("deleted")
set deleted off
select targetTable
append from dbf("SourceTable")
goto record nLastrecno && the last record b4 the additions
recall rest
set deleted &cLastDelState

- jer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform