Faster solution would be to use
aData := SRC->( FW_DbfToArray( [cFieldList], [bFor] ) )
DST->( FW_ArrayToDBF( aData, [cFieldList] ) )
cFieldList in FW_DbfToArray() can be a list of expressions too.
FW_ArrayToDBF() does a reasonable conversion of values too.
It is possible to copy to DBF with different fieldnames and fieldtypes
Example:
[code=fw:3r99ink0][/code:3r99ink0]
Even a lot faster is to use SQL. Here is an example assuming both tables are not having fpt memo fields.
[code=fw:3r99ink0][/code:3r99ink0]
Please build and try this sample. You will get the best speed.
↧