|
KitList() 
Return a list of kit components.
Syntax
KitList(<cStockID>) --> aList
Arguments
<cStockID> --> The stock ID of the stock
kit. If the stock item is not a kit an empty list will be
returned.
Returns
A three element list consisting of:
1. StockID
2. Quantity of the component that is found in the
list.
3. The record number of the stock item
component.
If no components are applicable to the specified
Stock ID, an empty list is returned.
Description
KitList() returns a listing of all the components
that make up a stock kit.
Examples
Declare aList Type
Array
aList :=
KitList(StockID())
If Len(aList) >
0
*
List StockID of component
*
(Item 1 in list, element 1)
Echo(aList[1,1])
*
List quantity of this component
*
(Item 1 in list, element 2)
Echo(aList[1,2])
*
List record number of stock item
*
(Item 1 in list, element 3)
Echo(aList[1,3])
Endif
The
Len() function
when used on an array variable will return the number of items in
the array list.
____________________________
Related Topics
Business
Function List
Len()
RecNo()
StockID()
|