RecordNumber (RecordLockingConflict property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 14: Line 14:


==Example==
==Example==
<ol><li>
The following example shows all the properties of the <var>RecordLockingConflict</var> class.  While the standard record locking conflict information is available for retrieval via the <var class="Product">User Language</var> functions $rlcfile, $rlcrec, $rlcuid, and $rlcusr, that information is also set in the exception object and retrievable via that object:
The following example shows all the properties of the <var>RecordLockingConflict</var> class.  While the standard record locking conflict information is available for retrieval via the <var class="Product">User Language</var> functions $rlcfile, $rlcrec, $rlcuid, and $rlcusr, that information is also set in the exception object and retrievable via that object:
<p class="code"> %rlc  is object RecordLockingConflict
<p class="code"> %rlc  is object RecordLockingConflict
Line 29: Line 28:
       with user number:{%rlc:userNumber}
       with user number:{%rlc:userNumber}
  end try
  end try
</p></ol>
</p>


==See also==
==See also==
{{Template:RecordLockingConflict:RecordNumber footer}}
{{Template:RecordLockingConflict:RecordNumber footer}}

Revision as of 16:27, 5 May 2011

Record number of the record that has the conflict (RecordLockingConflict class) This ReadOnly property returns the numeric value of the Model 204 internal record number of the record that has the conflict.

Syntax

%number = recordLockingConflict:RecordNumber

Syntax terms

%number A numeric variable to receive the record number.
recordLockingConflict A reference to an instance of a RecordLockingConflict object.

Example

The following example shows all the properties of the RecordLockingConflict class. While the standard record locking conflict information is available for retrieval via the User Language functions $rlcfile, $rlcrec, $rlcuid, and $rlcusr, that information is also set in the exception object and retrievable via that object:

%rlc is object RecordLockingConflict ... %rec = new(%recnum, none, loopLockStrength=share) ... try for record %rec ... end for catch recordLockingConflict to %rlc auditText Conflict on record {%rlc:recordNumber} - in file {%rlc:filename} auditText Conflicting user was userid {%rlc:userid}, - with user number:{%rlc:userNumber} end try

See also