Welcome to the Dictionary of Programming Languages, a compendium
of computer coding methods assembled to provide information and
aid your appreciation for computer science history.
Browse the dictionary by clicking on a section:
A
B
C
D
E
F
G
H
I
JK
L
M
N
O
P
QR
S
T
UV
WXYZ+
Get a full dump of the dictionary:
List of Names
Short Form
Full Form
-
VBScript
- See:
- Language type:
- Description:
Visual Basic Scripting Edition is a
subset dialect of Visual Basic; it is
an interpreted, procedural language intended
for creating application extension scripts
and for adding interactivity to web pages.
VBScript's syntax resembles that of
Visual Basic: statements are bounded by
end-of-line, and normal Basic keywords
are used for control structures and
code modularity. VBScript supports a
modest set of data types: various numeric
types, strings, dates, booleans, arrays, and
object references. Variables in VBScript
are typed, but the interpreter does not
do strong type enforcement. VBScript
supports subroutines and functions, and
can interact with objects provided by its
environment (usually a scriptable application).
VBScript does not support the definition of
new object classes, nor does it support
overloading or polymorphism. The language
has fairly good support for handling time, dates,
and strings.
The newest version of VBScript also supports
a dictionary object, an associative array
for storing string data.
VBScript is most commonly employed in
web browsers and web servers from Microsoft.
Under the 32-bit Windows environment, any
application can employ VBScript if it
is installed; Microsoft intends VBScript
to be the baseline or typical scripting
language for simple OLE applications.
The first release of VBScript was part of
Microsoft's Internet Explorer 3.0 product; in
1997 they released VBScript 2.0.
Good information about VBScript, including
a hyperlinked reference manual, in available
from Microsoft's web site. Many good books
about it are also available.
- Origin:
Microsoft Corporation, 1995 ?
- See Also:
- Remarks:
In the web browser niche, VBScript
and JavaScript are the two main
competitors. They are comparable
in terms of functionality, although
in most respects JavaScript is a
more powerful programming language.
In web browsers, VBScript is often
employed to validate HTML form data and
to make forms more responsive. It
can also be used, in web browsers and
elsewhere, to configure and manipulate
ActiveX controls.
VBScript has not language-defined
I/O facilities; any I/O that it supports
must be provided by object classes
supplied from the controlling application
environment. In a web browser client,
these objects are not available, but in a
web server environment they are.
- Links:
- Date:
- Sample code:
An example of using VBScript to check
form data.
Function isSSN(ssns)
isSSN = False
If (len(ssns) = 9 or len(ssns) = 11) Then
isSSN = True
End If
End Function
Sub submit_OnClick
dim namestr, ssnstr, psw, req
set form = document.form1
namestr = Trim(form.NameStrField.Value)
ssnstr = Trim(form.SSNStrField.Value)
If (len(namestr) = 0) Then
msgbox "Name is empty, please type in your name"
Exit Sub
ElseIf (not isSSN(ssnstr)) Then
msgbox "SSN field is not the right length, please fix it"
Exit Sub
Else
psw = InputBox("Enter your password:","Form Password","")
End If
req = "http://test.org/cgi/start.cgi?ssn=" &
ssnstr & "&passwd=" psw
loc.href = req
End Sub
Descriptions in this dictionary are ©1997-99 Neal Ziring. Some
examples copyright of their respective authors. Some
technologies and languages are trademarked. Permission to
copy descriptions is granted as long as authorship credit is preserved.
Comments on this dictionary, corrections and suggestions, are all welcome.
Please use email, the address is ziring@home.com
[Ziring MicroWeb Home]
[Dictionary Start]
[Sign Guestbook]
Dictionary and script maintained by Neal Ziring, last major modifications 3/18/98. Most recent
additions to dictionary and master list, 1/00.