IBM SC34-5764-01 Instrukcja Użytkownika Strona 143

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 481
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 142
Assignments and Symbols
A variable is an object whose value can change during the running of a REXX program. The process of
changing the value of a variable is called assigning a new value to it. The value of a variable is a single
character string, of any length, that may contain any characters.
You can assign a new value to a variable with the ARG, PARSE, or PULL instructions, the VALUE built-in
function, or the variable pool interface, but the most common way of changing the value of a variable is
the assignment instruction itself. Any clause of the form:
symbol=expression;
is taken to be an assignment. The result of expression becomes the new value of the variable named by
the symbol to the left of the equal sign. Currently, on VM if you omit expression, the variable is set to the
null string. However, it is recommended that you explicitly set a variable to the null string: symbol=''.
Example:
/* Next line gives FRED the value "Frederic" */
Fred='Frederic'
The symbol naming the variable cannot begin with a digit (09) or a period. (Without this restriction on the
first character of a variable name, you could redefine a number; for example 3=4; would give a variable
called 3 the value 4.)
You can use a symbol in an expression even if you have not assigned it a value, because a symbol has a
defined value at all times. A variable you have not assigned a value is uninitialized. Its value is the
characters of the symbol itself, translated to uppercase (that is, lowercase az to uppercase AZ).
However, if it is a compound symbol (described under section “Compound Symbols” on page 122), its
value is the derived name of the symbol.
Example:
/* If Freda has not yet been assigned a value, */
/* then next line gives FRED the value "FREDA" */
Fred=Freda
The meaning of a symbol in REXX varies according to its context. As a term in an expression (rather than
a keyword of some kind, for example), a symbol belongs to one of four groups: constant symbols, simple
symbols, compound symbols, and stems. Constant symbols cannot be assigned new values. You can use
simple symbols for variables where the name corresponds to a single value. You can use compound
symbols and stems for more complex collections of variables, such as arrays and lists.
Constant Symbols
A constant symbol starts with a digit (09) or a period.
You cannot change the value of a constant symbol. It is simply the string consisting of the characters of
the symbol (that is, with any lowercase alphabetic characters translated to uppercase).
These are constant symbols:
77
827.53
.12345
12e5 /* Same as 12E5 */
3D
17E-3
REXX General Concepts
Chapter 12. REXX General Concepts 121
Przeglądanie stron 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 480 481

Komentarze do niniejszej Instrukcji

Brak uwag

Sharp FO-NS2 manuali

Manuali dei proprietari e guide per l'utente per Software Sharp FO-NS2.
We fornisce 2 manuali pdf Sharp FO-NS2 per scaricare gratuitamente in base al tipo di documento: Manuale di Servizio, Manuale Utente


Sharp FO-NS2 Manuale Utente (1 pagine)


Marchio: Sharp | Categoria: Software | Dimensione: 0.04 MB |

  

Indice





Più prodotti e manuali per Software Sharp

Modelli Tipo di Documento
Display Manager Specifiche   Sharp Display Manager Specifications [en] , 29 pagine
e-Copy ShareScan Guida di Configurazione   Sharp e-Copy ShareScan Setup guide, 355 pagine
AR-NB2A Manuale Utente   AR-208S AR-208D, 4 pagine
Intellisync Manuale di Servizio   Sharp Intellisync Technical data, 23 pagine
MXUSX5 - Desk - PC Manuale Utente   MXC311 MXC401 - Com Pro Business Solutions, 12 pagine
AL-2050CS Digital Multifunctional System Operation Manuale di Servizio   Sharp AL-2050CS Digital Multifunctional System Operation Service manual, 172 pagine
AR-P17 Software setupg guide Manuale di Servizio   Sharp AR-P17 Software setupg guide Service manual, 35 pagine
MXUSX5 - Desk - PC Manuale Utente   MXC311/MXC401 SPECIFICATIONS, 1 pagine
AR-PG1 Specifiche   Sharp AR-PG1 Specifications, 47 pagine
AR-P17 Software setupg guide Manuale Utente   Sharp AR-M277 - G, 2 pagine
AL-2050CS Digital Multifunctional System Operation Manuale Utente   service manual al-2030 al-2040cs model al-2050cs - service, 5 pagine
AR-M257 - Digital Imager B/W Laser Manuale Utente   AR-M257 | AR-M317 Brochure - Ameritex Office Solutions, 8 pagine
AR-M317 Manuale Utente   AR-M257 | AR-M317 Specification Sheet - G, 2 pagine
AR-BC260 Manuale Utente   Sharp AR BC260, 1 pagine
eCopy ShareScan OP Manuale Utente   Sagem-Interstar Connector for eCope ShareScan, 2 pagine
PixLab Manuale Utente   using the pixlab media browser, 48 pagine
R-380E Manuale di Servizio   Sharp R-380E Technical data, 228 pagine
MXUSX5 - Desk - PC Manuale Utente   Sharp - Continental Imaging Products, 4 pagine
AR-M257 - Digital Imager B/W Laser Manuale Utente   SHARP IT REFERENCE GUIDE, 50 pagine
AR-M258 Manuale Utente   - service-repair [en] , 3 pagine