Methods
- Last UpdatedJun 23, 2017
- 1 minute read
This section describes the methods available for the wwMaterialUnit class.
AddMaterialCLB()
This method adds a new lot (CLB) of material to the unit. The return code is a Short integer value that can be used for error handling.
For more information on the error codes returned, see "Error Return Values".
Syntax
ReturnCode = MaterialUnitVar.AddMaterialCLB ( CampaignID, LotID, BatchID, Quantity, Month, Day, Year)
Parameters
CampaignID
Data Type: String
New Campaign ID of lot
LotID
Data Type: String
New Lot ID of lot
BatchID
Data Type: String
New Batch ID of lot
Quantity
Data Type: Double
New Quantity in lot
Month
Data Type: Integer
Month lot was entered
Day
Data Type: Integer
Day lot was entered
Year
Data Type: Integer
Year lot was entered
Delete()
This method deletes the material assigned to the selected unit. The return code is a Short integer value that can be used for error handling.
For more information on the error codes returned, see "Error Return Values".
Syntax
ReturnCode = MaterialUnitVar.Delete ()
QueryCLBs()
This method updates the MaterialCLBs collection with the latest set of material lots.
Syntax
MaterialUnitVar.QueryCLBs ()