Implemented in version 1.0
statement is used to declare a new public variable or array. You can declare more than one variable and/or array at a time. Memory is also allocated. You cannot declare a variable and assign a value to it at the same time.
The purpose of
has changed with the addition of
to VBScript. The recommendation is to only use
. A variable declared using
becomes a public property of that
. That means that other code contained in the same
can access the variable.
If declared within a script, the results are the same as using
, the public variable or array is available for use in the entire script.
' First declare
' Then assign a value
YourNumber = 1895.405
Public SomeNumber, MyVar, AnotherString
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.