Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

Expected integer constant

You attempted to create an array using a nonconstant in the Dim statement. In VBScript, the value of size in a Dim statement must be a constant. For example,

Dim a(10)   ' is valid.
Dim a(x)    ' is not valid.
Dim a(1=2)  ' is not valid.

To correct this error

  • Use the ReDim statement.

See Also

Dim Statement | ReDim Statement


     Gas Suppliers | Online Loans | Loans | Hotels in Krakow | Credit Card Consolidation
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp