In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "what is the VBScript data type". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what is the VBScript data type"?
VBScript has only one data type, called Variant. Variant is a special data type that can contain different categories of information depending on how it is used. Because Variant is the only data type in VBScript, it is also the data type of the return value of all functions in VBScript.
The simplest Variant can contain numeric or string information. Variant is treated as a number when used in a numeric context and as a string when used in a string context. That is, if you use data that looks like a number, VBScript assumes that it is a number and processes it in a manner that applies to numbers. Similarly, if the data used can only be a string, VBScript will handle it as a string. You can also enclose a number in quotes ("") to make it a string.
Variant subtype
In addition to simple numbers or strings, Variant can further distinguish the specific meaning of numeric information. For example, numerical information is used to represent a date or time. When such data is used with other date or time data, the result is always represented as a date or time. Numerical information is varied from Boolean values to floating-point numbers. The type of numeric information contained in Variant is called a subtype. In most cases, you can put the required data into Variant, and Variant operates in the manner that is most appropriate for the data it contains.
The following table shows the data subtypes that Variant contains:
The subtype describes Empty's uninitialized Variant. For numeric variables, the value is 0; for string variables, the value is a zero-length string (""). Null does not contain any Variant of valid data. Boolean contains either True or False. Byte contains integers between 0 and 255. Integer contains integers between-32768 and 32767. Currency-922337203685477.5808 to 922337203685477.5807. Long contains integers between-2147483648 and 2147483647. Single contains single-precision floating-point numbers, ranging from-3.402823e+26 trillion to-1.401298E-45 for negative numbers and from 1.401298E-45 to 3.402823e+26 trillion for positive numbers. Double contains double-precision floating-point numbers, with negative numbers ranging from-1.79769313486232E308 to-4.94065645841247E-324 and positive numbers from 4.94065645841247E-324 to 1.79769313486232E308. Date (Time) contains numbers that represent dates, ranging from January 1, 100 to December 31, 9999. String contains variable-length strings with a maximum length of 2 billion characters. Object contains objects. Error contains the error number.
You can use conversion functions to convert subtypes of data. In addition, you can use the VarType function to return the Variant subtype of the data.
Undefined
At this point, I believe you have a deeper understanding of "what is the VBScript data type". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.