Vbscript

Whitespace and Line Breaks

Whitespace and Line Breaks

VBScript ostracises tabs, spaces and newlines that arise within VBScript programs. One can use tabs, spaces and newlines unobstructedly within the program, so you can freely format and order your programs in a systematic and consistent manner that formulates the code simple to read and comprehend.

Formatting

Microsoft's Visual Basic is the basis of VBScript. No terminators like semicolon are used to terminate a specific statement, as opposed to JavaScript.

Single Line Syntax 

Colons are used when a single line of two or more VBScript lines to be written. Colons thus operate as a line separator in VBScript.

Multiple Line Syntax

When a statement in VBScript is long and if the user wants to split it into many lines, the user has to use underscore "_". This advances the readability of the command. 

Keywords

There are 79 reserved keywords in VBScript. The reserved words should not be used as a constant or variable or any other identifier names.

Case Sensitivity

VBScript is a case-insensitive programming language. This means that language variables, keywords, function names and any other identifiers need not be written with a capitalisation of letters. So identifiers INT Count, int count, and INT COUNT have the same object within VBScript.

Comments in VBScript

Comments are used to document the program logic and client information with which other programmers can effortlessly work on the same code in future. It can include information such as developed by, changed by, and it can also include incorporated logic. 

The interpreter despises comments during execution. Comments in VBScript are denoted by two methods.

Any statement that begins with a Single Quote (‘) is interpreted as a comment.

For Example:

<script language = "VBscript" type = "text/VBscript">
   <!—
      ' This Script is requested after successful login
      ' Composed by : Great Learning
      ' Return Value : True / False
   //- >
</script>

2. Any statement that starts with the keyword “REM”.

This is the example with the keyword "REM" −
<script language = "VBscript" type = "text/VBScript">
   <!—
      REM This script is formulated to Verify the Entered Input
      REM Modified by : Great Learning /user123
   //- >
</script>

 

Top course recommendations for you

    Mongodb Tutorial
    2 hrs
    Beginner
    25K+ Learners
    4.55  (2128)
    Android App with Python
    2 hrs
    Beginner
    33.7K+ Learners
    4.41  (895)
    JavaScript Projects
    2 hrs
    Intermediate
    42.5K+ Learners
    4.5  (1870)
    HTML Attributes and Tags
    2 hrs
    Beginner
    52.4K+ Learners
    4.53  (3124)
    HTML Tutorial
    6 hrs
    Intermediate
    67.5K+ Learners
    4.55  (3854)
    CSS Properties
    2 hrs
    Beginner
    25.4K+ Learners
    4.46  (1283)
    CSS Tutorial
    2 hrs
    Intermediate
    43.5K+ Learners
    4.52  (2439)
    Docker Best Practices
    2 hrs
    Beginner
    7.1K+ Learners
    4.38  (253)
    Docker for Intermediate Level
    3 hrs
    Beginner
    8K+ Learners
    4.39  (246)
    Docker Orchestration
    3 hrs
    Intermediate
    3.8K+ Learners
    4.59  (116)