Versions
All
Purpose
This function copies all of the data in a collection to another file variable. The dbdict for both the source and target files must exist. Records are added only.
Syntax
Code:$L.success.flag=rtecall("filecopy", $L.return.code, $L.dbdict.source.name, $L.dbdict.target.name, $L.count, $L.bad)
- $L.success.flag
true = success
false = failure- $L.return.code
returncode of the call- $L.dbdict.source.name
The name of the source dbdict- $L.dbdict.target.name
The name of the target dbdict- $L.count
A count of the number of records successfully moved- $L.bad
A count of the number of errors encountered
Example
Returns the "locationbak" file as an exact copy of the "location" file.Code:$L.dbdict.source.name="location" $L.dbdict.target.name="locationbak" $L.success.flag=rtecall("filecopy", $L.return.code, $L.dbdict.source.name, $L.dbdict.target.name, $L.count, $L.bad)



Reply With Quote
Bookmarks