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
    25.4K+ Learners
    4.54  (2288)
    Android App with Python
    2 hrs
    Beginner
    33.9K+ Learners
    4.41  (917)
    JavaScript Projects
    2 hrs
    Intermediate
    42.9K+ Learners
    4.49  (1931)
    HTML Attributes and Tags
    2 hrs
    Beginner
    52.7K+ Learners
    4.53  (3206)
    HTML Tutorial
    6 hrs
    Intermediate
    68.5K+ Learners
    4.54  (4031)
    CSS Properties
    2 hrs
    Beginner
    25.6K+ Learners
    4.46  (1322)
    CSS Tutorial
    2 hrs
    Intermediate
    44.2K+ Learners
    4.52  (2683)
    Docker Best Practices
    2 hrs
    Beginner
    7.1K+ Learners
    4.4  (276)
    Docker for Intermediate Level
    3 hrs
    Beginner
    8.1K+ Learners
    4.39  (252)
    Docker Orchestration
    3 hrs
    Intermediate
    3.9K+ Learners
    4.58  (120)