Measures Concepts
GitHub icon

VBScript

VBScript - Programming language

< >

VBScript is a programming language created in 1996.

#127on PLDB 28Years Old 6kRepos

VBScript ("Microsoft Visual Basic Scripting Edition") is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It allows Microsoft Windows system administrators to generate powerful tools for managing computers with error handling, subroutines, and other advanced programming constructs. It can give the user complete control over many aspects of their computing environment. Read more on Wikipedia...


' Hello World in VBScript (Windows Scripting Host) msgbox "Hello, World!"
Example from Wikipedia:
<% Option Explicit %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>VBScript Example</title> </head> <body> <div><% ' Grab current time from Now() function. ' An '=' sign occurring after a context switch (<%) is shorthand ' for a call to the Write() method of the Response object. Dim timeValue = Now %> The time, in 24-hour format, is <%=Hour(timeValue)%>:<%=Minute(timeValue)%>:<%=Second(timeValue)%>. </div> </body> </html>

Language features

Feature Supported Token Example
Integers ✓
' [0-9]+
Floats ✓
' [0-9]+\.[0-9]*(e[+-]?[0-9]+)?
Hexadecimals ✓
' &h[0-9a-f]+
Line Comments ✓ '
' A comment
Comments ✓
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout