APS (Advanced Planning and Scheduling) Asprova APS

 
Home > FAQ > COMChecking the number of the data of the added property of Array type user
FAQ
[[ COM ]]

Checking the number of the data of the added property of Array type user

Search in FAQ:

Q:Added "OrderUser_TEST" property in the Asptova order. Made it as the array type, and how to check the number of the data speciied by COM

A:

We use the method called [PropertyValueCount]
in the rootobject to check the numbers.

For example use VB to set it as follows
Dim propID As Long
Dim numData As Long

propID = root.LookupPropID("OrderUser_TEST")
numData = root.PropertyValueCount(order, propID)

※root is ASORootObject、and the order is ASBOrder. Get it from argList first.
※LookupPropID is the method to get the ID of the property. See here about the LookupPropID.


>>Back To [ COM ]