Default (GenericNamedArraylist property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Value to be returned if named item not presen<section end=dpl_desc/></b></span>
{{Template:GenericNamedArraylist:Default subtitle}}
[[Category:NamedArraylist methods|Default property]]
<!--DPL?? Category:NamedArraylist methods|Default property: Value to be returned if named item not presen-->
<p>
Default is a member of the [[NamedArraylist class]].
</p>


This ReadWrite property indicates the value to be returned if a
This ReadWrite property indicates the value to be returned if a
Line 11: Line 6:
to <tt>True</tt>.
to <tt>True</tt>.
==Syntax==
==Syntax==
  %val = %namrayl:Default
{{Template:GenericNamedArraylist:Default syntax}}
 
===Syntax terms===
  %namrayl:Default = %val
===Syntax Terms===
<dl>
<dl>
<dt><i>%val</i>
<dt><i>%val</i>
Line 23: Line 16:


</dl>
</dl>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>The initial value of the Default property varies with the
<li>The initial value of the Default property varies with the
Line 34: Line 27:
</table>
</table>
</ul>
</ul>
==See also==
{{Template:GenericNamedArraylist:Default footer}}

Revision as of 20:53, 28 January 2011

Value for Item to return when Name has no value (FloatNamedArraylist, NamedArraylist, and UnicodeNamedArraylist classes)


This ReadWrite property indicates the value to be returned if a requested item name is not in the NamedArraylist and the UseDefault property is set to True.

Syntax

%currentItem = anyNal:Default anyNal:Default = newItem

Syntax terms

%val
A value that matches the NamedArraylist item type or one that can be converted to that type.
%namrayl
A NamedArraylist object.

Usage notes

  • The initial value of the Default property varies with the NamedArraylist item type:
    ValueItem type
    0>Float and Fixed
    null string>String, Longstring, and Unicode
    null reference>object

See also