Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide > Customizable Product Scripts >
GetObjQuantity Method
This method returns the quantity of the specified component product in the current solution.
Syntax
GetObjQuantity (ProdName) as Integer
Argument Description ProdName String. The name of the component product. Use product name syntax to identity the component product.Items
Can be used only for component products within the customizable product.
Returns
Quantity of the component product in the current solution as an integer. If multiple instances of the component exist, the quantity of all instances are added together and the sum is returned. For example if there are two instances of an item one with quantity five and the other with quantity three, the return is eight.
Example
This script fragment obtains the quantity of 10 GB Drive (vendor = Sony) in the current solution and assigns it to the variable iItemQty.
Dim iItemQty as Integer
iItemQty = GetObjQuantity("{10 GB Drive; Sony}")
Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide Published: 23 June 2003 |