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
 
ObjectCount
<LONG> Data Type
<RO>

 

Obtains the size of the list.

 
AddObject
<VOID> Data Type
<Method>

 

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

 
AddObjects
<VOID> Data Type
<Method>

 

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

 
Clear
<VOID> Data Type
<Method>

 

Clears the list.

 
EraseObject
<VOID> Data Type
<Method>

 

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

 
Object
<ASOObject> Data Type
<Multi>

 

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

 
FilterByExprStr
<VOID> Data Type
<Method>

 

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

 
SortByExprStr
<VOID> Data Type
<Method>

 

"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."

 
Unique
<VOID> Data Type
<Method>

 

"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)
objlist.Unique
'......"

 
Find
<LONG> Data Type
<Method>

 

"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

ASOObject


HelpNo.:C10007

© Since 2019 Asprova Corporation, All rights reserved.