- •1. Ниже приведены 10 названий команд. Заполните таблицу, разделив команды на группы в
- •7. Вышеприведенные слова образуются, как правило, от глаголов.
- •8. А. Из нижеприведенного списка слов выпишите те, которые имеют сходство по форме.
- •9. Переведите следующие сочетания слов с предлогами и союзами, используя данные предлоги,
- •1. Keyboard 2. Printer 3. Memory 4. Program 5. Command 6. System 7. Warning 8. Directory
- •9. File 10. Drive
- •10. Запомните способы выражения количества.
- •1. Error in drive… .
- •1. Echo is off.
- •1. Ниже приведены 11 команд. Заполните таблицу, разделив команды на три группы
- •7. Проанализируйте следующие глаголы и их перевод. Выявите черты сходства,
- •1. Insufficient room in root directory.
- •1. Connect the rs-232c ports of the computers with the proper cable.
- •1. File does not exist.
- •14. В отрицательных предложениях может быть использована частица not со сказуемым или
- •1. End of file encountered.
- •In. Do this with the change directory command (cd). The current working directory is often called the default directory.
- •8. Переведите словосочетания.
- •10. Прочитайте сообщение и проанализируйте его структуру.
- •2. Must specify destination line number.
- •1. Запомните следующие слова и письменно переведите тексты.
- •Information Server.
- •Variant Subtypes
- •Variable names follow the standard rules for naming anything in vbScript. A variable
- •4. Запомните следующие слова и письменно переведите тексты.
- •5. Запомните следующие слова и письменно переведите тексты.
- •Is an object reference comparison operator. It does not compare objects or their values; it
- •Voltage. By assigning binary numbers to these states 1 for "on" and 0 for "off", and linking many
- •It is this process of recognizing signals that is known as digitization. The real power of a computer
- •1) The central processing unit (cpu). 2) input devices. 3) memory-storage devices called disk drives, 4)
- •Input devices let users enter commands, data, or programs for processing by the cpu. Information
- •Internally on special memory microchips. Auxiliary storage units supplement the main memory when
- •Information stored in one of the computer's memory systems can be easily printed on paper in a
- •Introduction
- •Integrate with other technologies such as company databases, workflow engines, and other desktop
- •Visual Basic for Applications enables the overall modeling tool to be customized to fit changing needs.
- •Including activity-based costing and process logic, enabling an understanding of the distribution of cost and
- •If your flowchart shapes aren’t lining up properly, you can use Arena’s snap and grid features to
- •1. File does not exist
4. Запомните следующие слова и письменно переведите тексты.
1. capital letters – основные буквы;
2. confusion – неразбериха;
3. constant – константа, постоянная;
4. complex script – сложный скрипт;
5. date literals – литералы даты;
6. differentiating – различие;
7. to define – определять;
8. to eliminate – устранять;
9. intrinsic constants – существенные константы;
10. literal values – буквенные значения;
11. meaningful – значимый;
12. never changes – никогда не изменяется;
13. prefix – префикс, приставка;
43
14. to reassign – переназначать;
15. sign – знак.
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
44
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.
When expressions contain operators from more than one category, arithmetic operators are
evaluated first, comparison operators are evaluated next, and logical operators are evaluated
last. Comparison operators all have equal precedence; that is, they are evaluated in the leftto-
right order in which they appear. Arithmetic and logical operators are evaluated in the
following order of precedence.
Arithmetic Comparison Logical
Description Symbol Description Symbol Description Symbol
Exponentiation ^ Equality = Logical negation Not
Unary negation - Inequality <> Logical conjunction And
Multiplication * Less than < Logical disjunction Or
Division / Greater than > Logical exclusion Xor
Integer division \ Less than or equal to <= Logical equivalence Eqv
Modulus arithmetic Mod Greater than or equal to >= Logical implication Imp
Addition + Object equivalence Is
Subtraction -
String concatenation &
When multiplication and division occur together in an expression, each operation is
evaluated as it occurs from left to right. Likewise, when addition and subtraction occur
together in an expression, each operation is evaluated in order of appearance from left to
right.
The string concatenation (&) operator is not an arithmetic operator, but in precedence it
does fall after all arithmetic operators and before all comparison operators. The Is operator