ph_setccobjtext PowerHome formula function
Description
Updates the text for the specified Control Center object.
Syntax
ph_setccobjtext ( as_text )
ph_setccobjtext ( as_tab, as_id, as_text )
Argument Description
as_tab String (Optional). The ID of the Control Center tab containing the object. If this parameter is omitted, the system variable CCTAB will be used
as_id String (Optional). The ID of the Control Center graphic object. If this parameter is omitted, the system variable CCOBJ will be used
as_text String . The text value to set the specified CC object to
Return value
String. Returns 0
Usage
Use this function to update the text for a Control Center object on a CC tab. A typical use of this function would be to set the current text of a Control Center object that was triggered and initiated an action such as a formula or macro. In that use case scenario, you can call the function without parameters and the ID's for both the tab and object will be automatically supplied by the system variables. If you wish to set the text for a CC object other than one that initiated an action, you must specify both the tab and object ID's
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_setccobjtext ( "STATUS", "DRMT", "[LOCAL3]" )
• ph_setccobjtext ( "STATUS", "DRMT", "55" )