Versions
All

Purpose
This function initializes a file variable in $targetfile from $sourcefile.

Syntax
Code:
$L.success.flag=rtecall("fileinit", $L.return.code, $targetfile, $sourcefile)
  • $L.success.flag
    true = success
    false = failure
  • $L.return.code
    returncode of the call
  • $targetfile
  • $sourcefile

Example
Code:
$L.void=rtecall("fileinit", $L.errcode, $file.old, $file)
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 can not be done against $targetfile.