system.gui.messageBox
Description
Displays an informational-style message popup box to the user.
Syntax
-
Parameters
String message - The message to display.
String title - A title for the message box. [optional]
-
Returns
Nothing
-
Scope
Client
Code Examples
Code Snippet
#This example will show how many hours a motor has been running when it is clicked. # get the motor numbermotorNumber = event.source.getPropertyValue('MotorNumber')# retrieve the hours running from the databasequery = "SELECT HoursRunning FROM MotorStatus WHERE motor=%d"hours = system.db.runScalarQuery(query % motorNumber) system.gui.messageBox("The motor has been running for %d hours" % motorNumber)