ВУЗ:
Составители:
Рубрика:
45
2. Запомните следующие слова и письменно переведите тексты.
1. Boolean values – логические значения;
2. classifications – классификации;
3. to convert – преобразовывать;
4. conversion functions – конверсионные функции
5. to contain – содержать;
6. data types – типы данных;
7. different kinds of information – различные виды информации;
8. distinctions – различия;
9. to enclose – заключать;
10. to express – выражать;
11. floating–point numbers – числа с плавающей точкой;
12. functions – функции;
13. integer – целое;
14. numeric – числовой;
15. quotation marks – кавычки;
16. to represent – представлять;
17. to return – возвращать;
18. string – строка;
19. subtypes – подтипы;
20. true, false – истина, ложь.
VBScript Data Types
What Are VBScript Data Types?
VBScript has only one data type called a Variant. A Variant is a special kind of data type that
can contain different kinds of information, depending on how it's used. Because Variant is the
only data type in VBScript, it's also the data type returned by all functions in VBScript.
At its simplest, a Variant can contain either numeric or string information. A Variant behaves
as a number when you use it in a numeric context and as a string when you use it in a string
context. That is, if you're working with data that looks like numbers, VBScript assumes that it is
numbers and does the thing that is most appropriate for numbers. Similarly, if you're working
with data that can only be string data, VBScript treats it as string data. Of course, you can always
make numbers behave as strings by enclosing them in quotation marks (" ").
Variant Subtypes
Beyond the simple numeric or string classifications, a Variant can make further distinctions
about the specific nature of numeric information. For example, you can have numeric
information that represents a date or a time. When used with other date or time data, the result
is always expressed as a date or a time. Of course, you can also have a rich variety of numeric
information ranging in size from Boolean values to huge floating-point numbers. These
different categories of information that can be contained in a Variant are called subtypes. Most
of the time, you can just put the kind of data you want in a Variant, and the Variant behaves
in a way that is most appropriate for the data it contains.
2. Запомните следующие слова и письменно переведите тексты. 1. Boolean values – логические значения; 2. classifications – классификации; 3. to convert – преобразовывать; 4. conversion functions – конверсионные функции 5. to contain – содержать; 6. data types – типы данных; 7. different kinds of information – различные виды информации; 8. distinctions – различия; 9. to enclose – заключать; 10. to express – выражать; 11. floating–point numbers – числа с плавающей точкой; 12. functions – функции; 13. integer – целое; 14. numeric – числовой; 15. quotation marks – кавычки; 16. to represent – представлять; 17. to return – возвращать; 18. string – строка; 19. subtypes – подтипы; 20. true, false – истина, ложь. VBScript Data Types What Are VBScript Data Types? VBScript has only one data type called a Variant. A Variant is a special kind of data type that can contain different kinds of information, depending on how it's used. Because Variant is the only data type in VBScript, it's also the data type returned by all functions in VBScript. At its simplest, a Variant can contain either numeric or string information. A Variant behaves as a number when you use it in a numeric context and as a string when you use it in a string context. That is, if you're working with data that looks like numbers, VBScript assumes that it is numbers and does the thing that is most appropriate for numbers. Similarly, if you're working with data that can only be string data, VBScript treats it as string data. Of course, you can always make numbers behave as strings by enclosing them in quotation marks (" "). Variant Subtypes Beyond the simple numeric or string classifications, a Variant can make further distinctions about the specific nature of numeric information. For example, you can have numeric information that represents a date or a time. When used with other date or time data, the result is always expressed as a date or a time. Of course, you can also have a rich variety of numeric information ranging in size from Boolean values to huge floating-point numbers. These different categories of information that can be contained in a Variant are called subtypes. Most of the time, you can just put the kind of data you want in a Variant, and the Variant behaves in a way that is most appropriate for the data it contains. 45
Страницы
- « первая
- ‹ предыдущая
- …
- 41
- 42
- 43
- 44
- 45
- …
- следующая ›
- последняя »