Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace record from other dbf
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00994807
Message ID:
00994812
Views:
22
You must put this code in some cikle:
****
SELECT 38  && I always prefrer to work with alias name instead of Alias number
ZAP        && Faster then DELETE ALL & pack
alias38 = ALIAS()

SELECT 6
SET ORDER TO sls
alias6 = ALIAS()
SCAN
  INSERT INTO (m_alias) (scode, lcode, sec) VALUES (&alias6..scode, &alias6..lcode, &alias6..sec)
ENDSCAN

*** Or if You want to append all Records from Alias № 6
SELECT 6
alias6 = ALIAS()

SELECT 38  && I always prefrer to work with alias name instead of Alias number
ZAP        && Faster then DELETE ALL & pack
alias38 = ALIAS()
APPEND FROM DBF(alias6) FIELDS scode, lcode, sec
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform