Digita World

Home Digita
Scripting
Digita
Desktop
Digita
Applications
Other
Files
Links

Digita Script Tutorials - The Alert Command

Use the Alert command when you need to warn the user that continuing the script will produce irreversible results (ex. deleting or overwriting a file) or that the script has specific storage, power, and/or time requirements to ensure a successful result.

When processed by a Digita-enabled device, the Alert command displays a screen containing your message and the Exit and Continue softkey prompts.

The progress of your script is paused until the user presses either the Continue or Exit softkey.

The Continue softkey lets the script 'continue'. The Exit softkey stops the script and returns the user to the menu screen.

The Alert command can display text strings or variable values. The text strings to be displayed can have maximum length of 31 characters and must be placed within quotes. Quotes are not required to display the contents of a variable. For example:

Alert ("The chosen image will be erased")
# This displays the text inside the quotes.

Alert (uSrate)
# This displays the contents of the variable 'uSrate'.

To display messages longer than 31 characters, format multiple strings and or variables as shown below. Approximately 131 characters (5 lines) can be displayed on the Alert screen. If the display string you entered can't fit on a single line, the text will be continued on the next line. For example:

name "Alert Screen example"
mode 0
menu "Example Scripts"
label "Alert"

Alert ("Would you", " like to Continue", " or Exit", " this Script?")
exitscript

To next tutorial
Back to tutorial page


Last modified January 24, 2003          Copyright 2001, Chuck Gadd

Digita, Digita Desktop, DigitaPhoto.com, and DigitaDev.com are trademarks of FlashPoint Technology, Inc.