Monday, July 9, 2018

Collection Classes "Array"

Array objects may hold values of any single type, including objects and records.
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

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...