PDA

View Full Version : glopal variable


ahmedsoliman
10-08-2002, 10:11 PM
i want to declair var1 as boolean and glopal, i mean it can be seen and changed in all functions in my asp file.

when i type :
public var1 as boolean
it return an error said (Expected end) !!??

Bullschmidt
10-09-2002, 06:45 AM
You can't declare variable type explicity with VBScript which is what is usually used in .asp files.

So this is not allowed:
public var1 as boolean

But this is:
Dim var1

And to be used and seen in all files for a user perhaps don't even declare it at all but instead use it as a Session variable:
Session("var1") = True