ArrayValue Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


[Serializable, DefaultMember('Item')]
ArrayValue = public class(Value)

ArrayValue is an in-code array construct: [a,b,c]. This value is used in method calls or plain assignments. While it does not have a type of its own, it checks the result type to find out what the type should be, and checks the members against it. To force an array value to be a specific value, you can use the UnaryValue Class to cast it, it will take on that type then.

Namespace: Cirrus Values


Members

Method
Description
constructor(aValue: Value)Creates a new instance of this class
constructor(aFirstValue, aSecondValue: Value)Creates a new instance of this class
constructor(params aValues: array of Value)Creates a new instance of this class
constructorCreates a new instance of this class
Add(aValue: Value)Adds a new item
Remove(aValue: Value)Removes an item
RemoveAt(no: Integer)Removes an item


Properties

Property
Description
Count: IntegerReturns the number of items in this collection
Item[no: Integer]: ValueGets or sets the value at a given position in the list


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox