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

rtecall("fileinit") function

A RAD function that initializes a file variable in $targetfile from $sourcefile.

Function

rtecall("fileinit")

Format

rtecall($L.fnc.name, $errcode, $targetfile, $sourcefile)

Parameters

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

Parameter Data type Description
$L.fnc.name String Name of the sub-function to call, in this case "fileinit".
$L.errcode Number The number of the error code encountered.
$L.targetfile String The target file in which to initialize the variable.
$L.sourcefile String The source file that contains the variable.

Factors

  • The file initialized is identified by the $sourcefile variable.
  • The current record for $targetfile is the same as the current record in $sourcefile.
  • Update and delete operations cannot be performed against $targetfile.

Example

$L.void=rtecall("fileinit", $L.errcode, $file.old, $file)