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
    20.1K+ Learners
    4.58  (1106)
    Android App with Python
    2 hrs
    Beginner
    30.2K+ Learners
    4.44  (726)
    JavaScript Projects
    2 hrs
    Intermediate
    35.6K+ Learners
    4.52  (1281)
    HTML Attributes and Tags
    2 hrs
    Beginner
    46.5K+ Learners
    4.58  (2501)
    HTML Tutorial
    6 hrs
    Intermediate
    52.4K+ Learners
    4.5  (1226)
    CSS Properties
    2 hrs
    Beginner
    22K+ Learners
    4.51  (948)
    CSS Tutorial
    2 hrs
    Intermediate
    37.7K+ Learners
    4.54  (1795)
    Docker Best Practices
    2 hrs
    Beginner
    6.1K+ Learners
    4.38  (179)
    Docker for Intermediate Level
    3 hrs
    Beginner
    7.1K+ Learners
    4.37  (174)
    Docker Orchestration
    3 hrs
    Intermediate
    3.2K+ Learners
    4.63  (84)