Apr 6th, 2008 19:42
ha mo, Dave Clark, Jean-Bernard Valentaten, Colin Fraser, Lynda Falconer,
Colin Fraser wrote:
> Declare your variables globally, then it does not matter what use the
> the type is not an issue.
> However, once you have a variable and are using it in VBScript, you
> may want to consider its sub-type, in which case have a look at the
> varType function to determine the sub-type. varType will define the
> exact type, there are 16 different sub-types, btw, for you. If you
> only want to identify a few types then yopu may want to use the "is-
> These are isDate, isArray, isNumeric, isEmpty, isNull. These only
> return a true/false value, a boolean.
> Good luck...
variables, but the question was about ASP.
(usually) you cannot use the technique that Colin suggested.
You need to pass the variable through the querystring, thus reloading
the page and having ASP read the value through
myVar = request.querystring("someVar")
Sorry, but there is no other way to do it.
Nowadays, there is another choice -- AJAX: