Number (NamedArraylist function): Difference between revisions
Jump to navigation
Jump to search
m (update syntax terms to match corrected template) |
m (→See also) |
||
Line 21: | Line 21: | ||
==See also== | ==See also== | ||
<ul> | |||
<li>The <var>[[ItemByNumber_(GenericNamedArraylist_property)|ItemByNumber]]</var> property lets you retrieve or set an item using the item's ordinal number. | |||
<li>The <var>[[NameByNumber (NamedArraylist function)|NameByNumber]]</var> function lets you retrieve an item's name using the item's ordinal number. | |||
</ul> | |||
{{Template:NamedArraylist:Number footer}} | {{Template:NamedArraylist:Number footer}} |
Revision as of 19:31, 21 July 2011
Item number of specified name (NamedArraylist class)
The Number ReadOnly property returns the item number (ordinal) of the item that has the specified name in the NamedArraylist.
Syntax
%number = nal:Number( name)
Syntax terms
%number | A numeric variable to contain the number of the named nal item. |
---|---|
%nal | A NamedArraylist object. |
name | A string that serves as a subscript to identify a nal item. If the indicated name is not in nal, 0 is returned, regardless of the setting of UseDefault. |
Usage notes
- If Number is called and there is no item on the NamedArraylist that has the indicated subscript name, a 0 is returned, regardless of the setting of UseDefault.
See also
- The ItemByNumber property lets you retrieve or set an item using the item's ordinal number.
- The NameByNumber function lets you retrieve an item's name using the item's ordinal number.