Basic HTML version of Foils prepared 4 May 97

Foil 19 Basic Elements of VBScript Language

From Introduction to ActiveX, with VBScript CPS616 -- Information Track of CPS -- Spring Semester 97. by Nancy J. McCracken


Built-in data types include: Empty, Null, Integer, Long, Single, Double, Date, String, Object, Error
You may declare data types for variables, or you may leave it to the system to infer a type (variant type): <script language="vbscript"> <!-- Qty = 162 ProductName = "Paper Clip" --> </script>
A global variable is declared with the keyword dim: dim space dim myArray(9) creates a 10 element array indexed from 0 to 9



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998