ASOObjectList Class

"(Used only for COM. Handles the object list.
Please use the function CreateObjectList of CASRootObject class to create instance. If created by using CreateInstance function in C++, or new in VB/C#, there may be runtime errors. Please refer to here for more details.)"

<ASOObjectList> Interface


Property Overview

TabProperty NameData TypeDescription
<LONG> Data Type


Obtains the size of the list.

<VOID> Data Type


Adds a object of ASOObject type.
[in:LONG]Index: Specifies the position to add the object.

<VOID> Data Type


Adds a object of ASOObjectList type.
[in:LONG]Index: Specifies the position to add the object.

<VOID> Data Type


Clears the list.

<VOID> Data Type


Deletes the object at the position specified by Index.
[in:LONG]Index: Position of the object to be deleted.

<ASOObject> Data Type


Obtains and sets the object specified by Index.
[in:LONG]Index: Position of the object.

<VOID> Data Type


Specifies a filter expression as a string and filters the list.
[in:BSTR]FilterExpr: Filter expression string. This expression will return a boolean result.
˜'Order_Qty > 50'
˜'Order_Comments == 'AACC' && Order_Qty < 50'
You can enter expressions as above that can usually be used for ASVExpression.

<VOID> Data Type


"Specifies a sort expression as a string and sorts the list.
[in:BSTR]SortExpr: Sort expression string. <PropID1[Index],a|d;PropID2[Index],a|d;. . . ,PropIDn[Index],a|d> is used as a form.
Here, ""a"" means ""ascending"" and ""d"" means ""descending "".
˜'Child[1],a': Sorts the first elements of child properties in ascending order.
˜'Order_Item,a;Order_LET,d': Sorts in ascending item order and then sorts in descending LET order."

<VOID> Data Type


"Makes the list to have only unique elements. The Unique method assumes that the same elements are listed in a row. If the list is not sorted in that way, it should be resorted before executing Unique. In that case, you can sort the list as below.
Dim objlist As ASOObjectList
objlist.SortByExprStr ""ObjectID,a"" '(Object ID, ascending order)

<LONG> Data Type


"Searches the object specified as the Code string from the list. The search starts from the Start position. If any matching object is found, returns that object to FoundObject. The return value of this function is the position at which the object is found. If no matching object is found, the return value will be zero.
[in:BSTR] Code of the object to search
[in:LONG] Position from which the search starts. This index is ?? base.
[out:ASOObject] Found object. NULL, if not found."

<RO> : Read-Only
<Multi> : Array Type (Starting From 1)

<Basic> : Displays in basic mode
<Standard> : Displays in standard mode

See Also



© Since 2019 Asprova Corporation, All rights reserved.