Английский язык в информационных технологиях. Демкина Л.М. - 47 стр.

UptoLike

Составители: 

49
VBScript Constants
What Is a Constant?
A constant is a meaningful name that takes the place of a number or string and never
changes. VBScript defines a number of intrinsic constants. You can get information about
these intrinsic constants from the VBScript Language Reference.
Creating Constants
You create user-defined constants in VBScript using the Const statement. Using the Const
statement, you can create string or numeric constants with meaningful names and assign
them literal values. For example:
Const MyString = "This is my string."
Const MyAge = 49
Note that the string literal is enclosed in quotation marks (" "). Quotation values. Date
literals and time literals are represented by enclosing them in number signs (#). For
example:
Const CutoffDate = #6-1-97#
You may want to adopt a naming scheme to differentiate constants from variables. This will
prevent you from trying to reassign constant values while your script is running. For
example, you might want to use a "vb" or "con" prefix on your constant names, or you
might name your constants in all capital letters. Differentiating constants from variables
eliminates confusion as you develop more complex scripts.
5. Запомните следующие слова и письменно переведите тексты.
1. arithmetic operators арифметические операторы;
2. comparison operators операторы сравнения;
3. concatenation operators операторы конкатенации;
4. division деление;
5. equal precedence равный приоритет;
6. to evaluate оценивать;
7. an expression выражение;
8. in the left-to-right слева направо;
9. logical operators логические операторы;
10. multiplication умножение;
11. operator оператор;
12. operator precedence оператор приоритета, первоочередности;
13. to override аннулировать;
14. a predetermined order предопределенный порядок;
15. the string concatenation operator оператор строковой связи.
VBScript Operators
VBScript has a full range of operators, including arithmetic operators, comparison
operators, concatenation operators, and logical operators.
Operator Precedence
When several operations occur in an expression, each part is evaluated and resolved in a
predetermined order called operator precedence. You can use parentheses to override the
order of precedence and force some parts of an expression to be evaluated before others.
Operations within parentheses are always performed before those outside. Within
parentheses, however, standard operator precedence is maintained.
                                         VBScript Constants

What Is a Constant?
      A constant is a meaningful name that takes the place of a number or string and never
      changes. VBScript defines a number of intrinsic constants. You can get information about
      these intrinsic constants from the VBScript Language Reference.
Creating Constants
      You create user-defined constants in VBScript using the Const statement. Using the Const
      statement, you can create string or numeric constants with meaningful names and assign
      them literal values. For example:
               Const MyString = "This is my string."
               Const MyAge = 49
      Note that the string literal is enclosed in quotation marks (" "). Quotation values. Date
      literals and time literals are represented by enclosing them in number signs (#). For
      example:
               Const CutoffDate = #6-1-97#
      You may want to adopt a naming scheme to differentiate constants from variables. This will
      prevent you from trying to reassign constant values while your script is running. For
      example, you might want to use a "vb" or "con" prefix on your constant names, or you
      might name your constants in all capital letters. Differentiating constants from variables
      eliminates confusion as you develop more complex scripts.

  5. Запомните следующие слова и письменно переведите тексты.
      1.    arithmetic operators – арифметические операторы;
      2.    comparison operators – операторы сравнения;
      3.    concatenation operators – операторы конкатенации;
      4.    division – деление;
      5.    equal precedence – равный приоритет;
      6.    to evaluate – оценивать;
      7.    an expression – выражение;
      8.    in the left-to-right – слева направо;
      9.    logical operators – логические операторы;
      10.   multiplication – умножение;
      11.   operator – оператор;
      12.   operator precedence – оператор приоритета, первоочередности;
      13.   to override – аннулировать;
      14.   a predetermined order – предопределенный порядок;
      15.   the string concatenation operator – оператор строковой связи.

                                        VBScript Operators
      VBScript has a full range of operators, including arithmetic operators, comparison
      operators, concatenation operators, and logical operators.
Operator Precedence
      When several operations occur in an expression, each part is evaluated and resolved in a
      predetermined order called operator precedence. You can use parentheses to override the
      order of precedence and force some parts of an expression to be evaluated before others.
      Operations within parentheses are always performed before those outside. Within
      parentheses, however, standard operator precedence is maintained.

                                                 49