Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy fields
Message
From
28/11/2004 19:12:59
 
 
To
28/11/2004 15:48:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00965005
Message ID:
00965285
Views:
11
>hi,
>thank you,
>
>it is copy just one record(first record)only. i have more than 150 records at xldata.dbf.
>
>USE xldata
>SCATTER memvar MEMO
>USE nan
>*!* either append blank or seek correct record to update
>if eof("nan")
>    append blank
>endif
>&& i need to replace (delete all data replace new data)
>GATHER memvar field EXCEPT char28 MEMO
>
>thanks.
>best regards
>m.qasem

Yes, that code will only copy the first record from xldata

If you want to add 1 record to NAN for each record in XLDATA, this should do it. If you have existing records in NAN that you want to replace, YOU will have to locate the correct record before the GATHER command instead of using APPEND BLANK.
USE xldata in 0
USE nan in 0
select xldata
SCAN
   SCATTER memvar MEMO
   *!* either append blank or seek correct record to update
   SELECT NAN
   append blank
   && i need to replace (delete all data replace new data)
   GATHER memvar field EXCEPT char28 MEMO
ENDSCAN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform