Develop > Programming > System Language reference > List: rtecalls > rtecall("recdupl") function

rtecall("recdupl") function

A RAD function that copies the contents of the current record into the contents of another record.

Function

rtecall("recdupl")

Format

rtecall($L.fnc.name, $return.code, $targetfile, $sourcefile)

Parameters

The following parameters are valid for the rtecall("recdupl") function:

Parameter Data type Description
$L.fnc.name String Name of the sub-function to call, in this case "recdupl".
$L.return.code Number Provides a more detailed return code.
$targetfile String The target record to which fields are copied.
$sourcefile String The source file from which fields are copied.

Factors

  • Both $targetfile and $sourcefile must have identical descriptors. Data is copied by position, not field name.
  • Both $targetfile and $sourcefile must be initialized file variables.
  • The update and delete operations cannot be performed against $targetfile.

Example

$L.flg=rtecall("recdupl", $L.return.code, $L.temp, $L.file)