In VBScript (I.E. using WSH or ASP, not VB or VBA...) is there any way that you can "overwrite" the global variable type of Variant into something else, such as Long or Int?
The reason I ask is that, yes though it is designed to be "easy to use" by not having to declare variable type, the performance suffers tremendously when performing loops or doing a lot of mathematical computations.
In VB and VBA you can declare a variable as such:
Dim i as Integer
But in VBScript, you can only declare it like...
Dim i
Once you try to declare type, it throws an error (expected end of statement).
Just am curious...
Thanks!
The reason I ask is that, yes though it is designed to be "easy to use" by not having to declare variable type, the performance suffers tremendously when performing loops or doing a lot of mathematical computations.
In VB and VBA you can declare a variable as such:
Dim i as Integer
But in VBScript, you can only declare it like...
Dim i
Once you try to declare type, it throws an error (expected end of statement).
Just am curious...
Thanks!
