Page

4.5.1- VBScript Constants

  by NT Community Manager.
Last Updated  by Jim Minatel.  

PublicCategorized as 04. Variables.

Not tagged.
<< 4.5.0- ConstantsChapter44.6.0- Variable Scope >>

VBScript Constants

VBScript also presents a list of its own type constants, with values that you can use but will be unable to change. These constants correspond to the list of subtypes that we looked at earlier:

 

Constant

Value

VbEmpty

0

VbNull

1

VbInteger

2

VbLong

3

VbSingle

4

VbDouble

5

VbCurrency

6

VbDate

7

VbString

8

VbObject

9

VbError

10

VbBoolean

11

VbVariant

12

VbDataObject

13

VbByte

17

VbArray

8192

 

You can use these constants in the same way that you use variants; each of them represents the particular constant value indicated, although you cannot alter their values in any way.

 

There are literally hundreds of constants, which we can't cover here, and commonly they are stored in a separate file and then included in a page when needed. We look at the concept of using included information in chapter 10 .

 

<< 4.5.0- ConstantsChapter44.6.0- Variable Scope >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |