GetLot

Returns a Lot object populated with the specified Lot data from the material database, based on the Lot Name.
Syntax
Set object = MaterialSvr.GetLot(ByVal sName As String, UseCollection As Boolean)
The GetLot method syntax has these parts:
Part
Description
object
Reference to a valid Lot object.
MaterialSvr
Instance of the MaterialServer Interface to which the method is directed.
sName
Represents the Lot Name.
UseCollection
Boolean that, when set to TRUE, determines if a collection of error corrections exist. If so, the name is used to search the collection to get the error correction instance. If FALSE is specified, then the instance is retrieved directly from the material database. If a collection is loaded, this is the fastest search method.
TIP:
Because multiple Lots with the same name can exist in the material database this interface will return the first instance of the given Lot name so there is a possibility that the Lot returned will not be the Lot you are looking for. If this is the case, use the Material.Lots property to get a collection of Lots for a given material and loop through this collection to find the desired Lot.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal