ph_usererrmsg PowerHome formula function
Description
Inserts a user defined/generated error
message into the
PowerHome eventlog
Syntax
ph_usererrmsg ( as_message )
Argument | Description |
as_message | String. The error message to be inserted into the eventlog |
Return value
Integer. Returns 0
Usage
Use this function insert your own error
messages into the PowerHome eventlog. The event number will be a value of 45.
Similar to the ph_usermessage function in that a user generated message is added
to the eventlog but this one would be for errors vs the informational
messages typically generated using ph_usermessage
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_usererrmsg("Macro ID:
GETTEMPERATURE returned an invalid
value")