Objects of this type may be transferred to functions and methods. The values are
stored sequentially.
The following methods are commonly used on Array objects:
• exists(int) - checks if a value exists in a specific position in the
array.
• lastIndex() - retrieves the highest index that is used to store a value
in the array.
• value(int _index, [anytype _value]) - gets or sets the value of the
array member that is stored at the specified index.
• typeId() - returns the data type that the Array contains.
The following is an example using an Array object that holds three different
Query objects:
1 2 3 4 | Array array = new Array (Types::Class); array.value(1, new Query()); array.value(2, new Query()); array.value(3, new Query()); |
Best Regards,
Hossein Karimi
No comments:
Post a Comment