ph_createglobal PowerHome formula function
Description
Creates and initializes a PowerHome global variable on the fly.
Syntax
ph_createglobal ( id, value )
Argument Description
id String. The ID of the global variable to create.
value String representing the initial value to assign to the global variable
Return value
Integer. Returns 0 if successful. Returns a 1 if an error occurred such as the ID already existing.
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_createglobal("MOTIONCOUNT","0")
• ph_createglobal("MOTIONCOUNT", "[LOCAL1]")
• ph_createglobal("CAMERA_NAME","DrvCam")