RecipeSave() function
- Last UpdatedJun 17, 2024
- 1 minute read
The RecipeSave() function saves a new recipe or changes made to an existing recipe to a specified recipe template file.
Category
Recipe
Syntax
RecipeSave("Filename","UnitName","RecipeName");
Arguments
FileName
Name of the recipe template file. The value associated with FileName can be a string constant or a message tag containing the name of the recipe template file.
UnitName
Name of the specific unit in the designated recipe template file that will be used by the function. The RecipeSelectUnit() function returns a value to this parameter. The value associated with UnitName can be a string constant or a message tag that contains the name of the unit.
RecipeName
Name of the specific recipe in the designated recipe template file. The value associated with RecipeName can be a string constant or a message tag that contains the name of the recipe.
Example
The following example saves changes made to the Recipe3 recipe in the recfile.csv file. If Recipe3 does not currently exist in the recfile.csv file, it is created. The values set the values of the tags defined for Unit2:
RecipeSave("c:\recipe\recfile.csv", "Unit2", "Recipe3");