Script

<< Click to Display Table of Contents >>

 

Script

Let's create a "Quit" Command Button so that users can close this application.

1.On the Menu_Screen, insert a new Command Button with its Caption property equal to "Quit".

2.On this Quit Command Button, create a new script.

Option to create a new script

Option to create a new script

3.To insert comments in a script, start a line with an apostrophe. Type the following text.

'Quit the application

 

4.In the next line, open AppBrowser AppBrowser, select Viewer's Exit method, and then click Paste.

'Quit the application
Application.Exit

 

5.Execute this application and test this new functionality.

 

CHALLENGE IX

Create a Command Button near the alarm banner to acknowledge all active alarms in this application.

 

TIP

This action can be performed using a method from an E3Alarm object.

Was this page useful?