SaveRecipeSave()
- Last UpdatedJun 08, 2017
- 1 minute read
This method saves the control recipe information for a batch as a recipe in the recipe database. This method should be called only if the batch has a status of Done. If a different user is provided for the DoneBy and Author parameters, the DoneBy user is used for the Author. If this happens, the SaveRecipeAuthorChanged event is called. 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 = OcxBatchVar.SaveRecipeSave (CLB, RecipeId, Author, OptMask, Comment, DoneBy, CheckBy, DoneByPswd, CheckByPswd)
Parameters
CLB
Data Type: String
Campaign, Lot, and Batch data separated by forward slash (/) characters
RecipeId
Data Type: String
Recipe ID
Author
Data Type: String
Recipe author
OptMask
Data Type: Long
Flag to set whether approvals and/or equipment is retained:
0 = Retain approvals
1 = Retain equipment
Comment
Data Type: String
Recipe version comments
DoneBy
Data Type: String
Done by user ID
CheckBy
Data Type: String
Check by user ID
DoneByPswd
Data Type: String
Done by password
CheckByPswd
Data Type: String
Check by password