Recipes

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

This object manages "Recipe" objects.

Properties:Top

Count Parent  

Methods:Top

Create Delete ExportXML
Import ImportXML Item

Samples:Top

Public Sub zenOn_Recipes()
	'Declarations
	Dim zWork As Project
	Dim zRecipes As Recipes
	Dim zRecipe As recipe
	Dim zRecipeValue As RecipeValue
	Dim zVariable As Variable

	'Initialization of zWork with current project
	Set zWork = thisProject
	'Initialization of zRecipes with the recipe list of the project
	Set zRecipes = zWork.Recipes
	'Initialization of zRecipe with the new "Recipe" object
	Set zRecipe = zRecipes.Create("zenOn_Recipe")
	'Initialization of zVariable with the first element in the "Variables" object
	Set zVariable = zWork.Variables.Item(0)
	'Initialization of zRecipeValue with the new assigned variable. Default-Value = 5
	Set zRecipeValue = zRecipe.Create(zVariable.PvID, 5)

	'Deletes the recipe "zenOn_Recipe"
	zRecipes.Delete (zRecipe.Name)

End Sub