Upgrade from Vbscrpit to Vb7 (i) Variable declaration and use

Source: Internet
Author: User
We all know that the ASP is using VBSCRIPTM, and it is VBA (suitable for Office products), and VBA is a subset of VB,
Now the asp+ adopts VB as the program language, and the ASP produces a great difference.
(i) Declaration and use of variables
asp+ the data type of a variable directly with Dim
For example: Dim x As String and not allowed in ASP
asp+ set initial value problem directly with Dim
For example: Dim A As string= "I am a character" and is not allowed in ASP
asp+ when declaring multiple variables with Dim, the data type of each variable is the same
For example: Dim x,y As Integer
Length of numeric type
Byte 1 bytes
Short 2 bytes is equivalent to the integer of VBScript
Integer 4 bytes The equivalent of VBScript long
Loing 8 bytes
Single 4 bytes
Double 8 bytes
Decimal bytes This is new



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.