Copy and DeepCopy (Record functions)

From m204wiki
Revision as of 00:42, 7 November 2012 by JAL (talk | contribs)
Jump to navigation Jump to search

Deep copy this Record object (Record class)

DeepCopy returns an exact copy of the method object. It is identical to the Record Copy method. Record objects are always copyable and "deep-copyable" (as these terms are described in "The Object class copy methods").

Syntax

%outRecord = record:DeepCopy[( [lockStrength], - [LoopLockStrength= lockStrength])]

Syntax terms

%outRecord A Record object created by this method that contains a copy of the method object.
record A Record object variable. The variable can be Null, in which case the output object will also be Null.
lockstrength A value of the LockStrength enumeration that is the lock strength to give to the instantiated Record object. Options are: None, Share, or Exclusive, as described in "New (Recordset constructor)". This is an optional parameter, and it defaults to the lock strength of the method object.
LoopLockStrength The lock strength to be used for loops on the copied Record. This is an optional, name required, parameter, and it defaults to the LoopLockStrength of the method object Record. See "LoopLockStrength for Records".

Usage notes

  • The main value of DeepCopy of Record objects is to facilitate passing of these objects to and from daemons.
  • The following example illustrates the use of the DeepCopy function:

    %firstRec is object record in file geeks %currentRec is object record in file geeks ... %currentRec = %firstRec:deepcopy

See also