Visara Master Console Center Scripting Guide Instrukcja Użytkownika Strona 14

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 262
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 13
Chapter 1 Script Overview
Scripting Guide 14
Naming Scripts
Each script must be given a unique name before it is saved and compiled.
Note: The script name is case sensitive, so that “MYSCRIPT” and
“Myscript” do not call the same script.
We recommend that you use all lower case characters for naming scripts
(for example, “myscript”). The script name then has the same format as
the script file stored on disk; a call to “myscript” executes a script in the
file called “myscript.scx”.
Master Scripts
Use “master scripts” whenever possible. A master script is a looping
procedure that:
1. Reads the next message from a console.
2. Checks if the message needs processing and initiates any needed
procedures or actions. (By calling another script, for instance.)
3. Begins again by reading the next new message.
For example, a master script might contain a QREAD() statement to
retrieve the next message. Next, it includes a SWITCH statement to
perform an initial check if the message requires processing. If it requires
additional processing (that is, a CASE statement evaluates TRUE), the
commands in the CASE statement of the SWITCH command do any
additional checking of the message needed. They then call another script
to process the message.
Przeglądanie stron 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 261 262

Komentarze do niniejszej Instrukcji

Brak uwag