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