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
    26.1K+ Learners
    4.53  (2530)
    Android App with Python
    2 hrs
    Beginner
    34.2K+ Learners
    4.41  (955)
    JavaScript Projects
    2 hrs
    Intermediate
    43.7K+ Learners
    4.48  (2113)
    HTML Attributes and Tags
    2 hrs
    Beginner
    53.3K+ Learners
    4.52  (3292)
    HTML Tutorial
    6 hrs
    Intermediate
    70.3K+ Learners
    4.55  (4329)
    CSS Properties
    2 hrs
    Beginner
    26K+ Learners
    4.46  (1398)
    CSS Tutorial
    2 hrs
    Intermediate
    44.9K+ Learners
    4.51  (2893)
    Docker Best Practices
    2 hrs
    Beginner
    7.3K+ Learners
    4.45  (331)
    Docker for Intermediate Level
    3 hrs
    Beginner
    8.2K+ Learners
    4.41  (281)
    Docker Orchestration
    3 hrs
    Intermediate
    4K+ Learners
    4.57  (148)