Click to See Complete Forum and Search --> : Declaring a variable in VBScript


SteveS
October 3rd, 2001, 10:57 AM
Welcome to my own private hell. What is wrong with this variable declaration?

<%@LANGUAGE="VBSCRIPT"%>
<%

option EXPLICIT
Dim Number as Integer




<p>
<p>
<p>

For some reason I am not allowed to specify the datatype I want my variables. The PC just wants to give me a hard time for no reason right?

SteveS
October 3rd, 2001, 10:58 AM
No, the <p> isn't part of the code I was attempting to add additional whitespace lines to my question but my computer wanted to give me a hard time about that too.

Iouri
October 3rd, 2001, 11:16 AM
I believe there are no datatypes in VBScript. All the varaibles are variant

Iouri Boutchkine
iouri@hotsheet.com

SteveS
October 3rd, 2001, 11:31 AM
You are correct. I just found that in a VBScript book.