New (RecordLockingConflict constructor): Difference between revisions
mNo edit summary |
m (match syntax table to syntax template, tags and edits) |
||
Line 1: | Line 1: | ||
{{Template:RecordLockingConflict:New subtitle}} | {{Template:RecordLockingConflict:New subtitle}} | ||
This constructor generates an instance of an <var>[[RecordLockingConflict_class|RecordLockingConflict]]</var> exception. As shown in the syntax that follows, the <var>New</var> method arguments set the values of the class properties having the corresponding names. Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>RecordLockingConflict</var> object. | |||
Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>RecordLockingConflict</var> object. | |||
==Syntax== | ==Syntax== | ||
{{Template:RecordLockingConflict:New syntax}} | {{Template:RecordLockingConflict:New syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%recordLockingConflict</th> | ||
<td>A reference to an instance of a RecordLockingConflict object. | <td>A reference to an instance of a <var>RecordLockingConflict</var> object. | ||
</td></tr> | |||
<tr><th>%(RecordLockingConflict)</th><td>The class name in parentheses denotes a shared method.</td></tr> | |||
<tr><th>Filename</th> | |||
<td>This <var>[[Methods#Named parameters|Name-Required]]</var> parameter specifies the <var class="term">[[Longstrings|longstring]]</var> value (''%filename'') to be assigned to the object's <var>[[Filename_(RecordLockingConflict_property)|Filename]]</var> property. Its default value is a null string. | |||
</td></tr> | </td></tr> | ||
<tr><th> | <tr><th>RecordNumber</th> | ||
<td>This | <td>This <var>Name-Required</var> parameter specifies the numeric value (''recnum'') to be assigned to the object's <var>[[RecordNumber_(RecordLockingConflict_property)|RecordNumber]]</var> property. Its default value is 0. | ||
</td></tr> | </td></tr> | ||
<tr><th> | <tr><th>UserNumber</th> | ||
<td>This | <td>This <var>Name-Required</var> parameter specifies the numeric value (''usernum'') to be assigned to the exception object's <var>[[UserID_(RecordLockingConflict_property)|UserNumber]]</var> property. Its default value is 0. | ||
</td></tr> | </td></tr> | ||
<tr><th> | <tr><th>UserID</th> | ||
<td>This | <td>This <var>Name-Required</var> parameter specifies the longstring value (''userid'') to be assigned to the object's <var>[[UserNumber_(RecordLockingConflict_property)|UserID]]</var> property. Its default value is a null string. | ||
</td></tr> | </td></tr> | ||
</table> | |||
==See also== | ==See also== | ||
{{Template:RecordLockingConflict:New footer}} | {{Template:RecordLockingConflict:New footer}} |
Revision as of 07:04, 23 April 2011
Create a new RecordLockingConflict object (RecordLockingConflict class) This constructor generates an instance of an RecordLockingConflict exception. As shown in the syntax that follows, the New method arguments set the values of the class properties having the corresponding names. Each argument to New sets the value of the corresponding property of the newly constructed RecordLockingConflict object.
Syntax
%recordLockingConflict = [%(RecordLockingConflict):]New( Filename= string, - RecordNumber= number, - UserNumber= number, - UserID= string, - [LockingUserNumber= number], - [LockTimeMilliseconds= number], - [ConflictTimeMilliseconds= number], - [ConflictingLockStrength= lockStrength], - [ConflictingRecordLockType= recordLockType])
Syntax terms
%recordLockingConflict | A reference to an instance of a RecordLockingConflict object. |
---|---|
%(RecordLockingConflict) | The class name in parentheses denotes a shared method. |
Filename | This Name-Required parameter specifies the longstring value (%filename) to be assigned to the object's Filename property. Its default value is a null string. |
RecordNumber | This Name-Required parameter specifies the numeric value (recnum) to be assigned to the object's RecordNumber property. Its default value is 0. |
UserNumber | This Name-Required parameter specifies the numeric value (usernum) to be assigned to the exception object's UserNumber property. Its default value is 0. |
UserID | This Name-Required parameter specifies the longstring value (userid) to be assigned to the object's UserID property. Its default value is a null string. |