Default (GenericNamedArraylist property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (match syntax table to diagram, couple of tags, lots of edits) |
||
Line 1: | Line 1: | ||
{{Template:GenericNamedArraylist:Default subtitle}} | {{Template:GenericNamedArraylist:Default subtitle}} | ||
The <var>Default</var> ReadWrite property indicates the value to be returned if a requested item name is not in the method <var>FloatNamedArraylist</var> / <var>NamedArraylist</var> / <var>UnicodeNamedArraylist</var> and the <var>[[UseDefault (NamedArraylist property)|UseDefault]]</var> property is set to <code>True</code>. | |||
requested item name is not in the NamedArraylist and | |||
the [[UseDefault (NamedArraylist property)|UseDefault]] property is set | |||
to < | |||
==Syntax== | ==Syntax== | ||
{{Template:GenericNamedArraylist:Default syntax}} | {{Template:GenericNamedArraylist:Default syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%currentItem</th> | ||
<td>A value that matches the | <td>A value that matches the array list item type, or one that can be converted to that type; that will receive the current default. </td></tr> | ||
<tr><th> | <tr><th>anyNal</th> | ||
<td>A | <td>A array list object.</td></tr> | ||
<tr><th>newItem</th> | |||
<td>A new value that matches the array list item type, or one that can be converted to that type; that will become the new default.</td></tr> | |||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul><li>The initial value of the Default property varies with the array list item type: | ||
<li>The initial value of the Default property varies with the | |||
<table> | <table> | ||
<tr><th> | <tr><th>Item type</th><th>Value</th></tr> | ||
<tr><td> | <tr><td>Float and Fixed</td><td>0</td></tr> | ||
<tr><td> | <tr><td>String, <var>Longstring</var>, and Unicode</td><td>null string</td></tr> | ||
<tr><td> | <tr><td>object</td><td>null reference</td></tr> | ||
</table> | </table></ul> | ||
</ul> | |||
==See also== | ==See also== | ||
{{Template:GenericNamedArraylist:Default footer}} | {{Template:GenericNamedArraylist:Default footer}} |
Revision as of 08:06, 2 March 2011
Value for Item to return when Name has no value (FloatNamedArraylist, NamedArraylist, and UnicodeNamedArraylist classes)
The Default ReadWrite property indicates the value to be returned if a requested item name is not in the method FloatNamedArraylist / NamedArraylist / UnicodeNamedArraylist and the UseDefault property is set to True
.
Syntax
%currentItem = anyNal:Default anyNal:Default = newItem
Syntax terms
%currentItem | A value that matches the array list item type, or one that can be converted to that type; that will receive the current default. |
---|---|
anyNal | A array list object. |
newItem | A new value that matches the array list item type, or one that can be converted to that type; that will become the new default. |
Usage notes
- The initial value of the Default property varies with the array list item type:
Item type Value Float and Fixed 0 String, Longstring, and Unicode null string object null reference