Difference between revisions of "Collection"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Helen.george (Talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: | This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Property | !width="20%"|Property | ||
!Access (R/RW) | !Access (R/RW) | ||
Line 20: | Line 20: | ||
====Methods==== | ====Methods==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: |
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Method | !width="20%"|Method | ||
!Args | !Args | ||
Line 31: | Line 31: | ||
|valign="top"|Adds the specified item to the collection | |valign="top"|Adds the specified item to the collection | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Clear |
− | |valign="top"| | + | |valign="top"|None |
− | |valign="top"| | + | |valign="top"|Remove all items from the collection |
|- | |- | ||
|valign="top"|Item | |valign="top"|Item | ||
Line 39: | Line 39: | ||
|valign="top"|Returns the specified item | |valign="top"|Returns the specified item | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Remove |
− | |valign="top"| | + | |valign="top"|name as Character |
− | |valign="top"| | + | |valign="top"|Removes the specified item from the collection |
|- | |- | ||
|} | |} | ||
Line 47: | Line 47: | ||
====Events==== | ====Events==== | ||
− | This class supports the | + | This class supports the [[:Category:Common_Events|Common Events]] plus the following: |
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Event | !width="20%"|Event | ||
!Args | !Args |
Latest revision as of 05:57, 30 April 2013
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Count | R | Numeric | Returns number of items |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
Add | name as Character, value as Expr | Adds the specified item to the collection |
Clear | None | Remove all items from the collection |
Item | name as Character | index as Numeric | Returns the specified item |
Remove | name as Character | Removes the specified item from the collection |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|