[RESOLVED] declare a variable as global?
Hello all.
Apologies for my ASP being so rusty, but, how do you declare a variable as global so that it may be accessed within a function?
Code:
Dim strLangID
strLangID = getLangID
Function Whatever()
'''''''''' here i want to access strLangID
End Function
All help is appreicated.
Many thanks.
Re: declare a variable as global?
Declare it outside the function, just like you have.
Use it, as you plan to.
Re: declare a variable as global?
Thanks mendhak. I thought I would need a global keyword or something.
Re: [RESOLVED] declare a variable as global?
If you can, you probably should move over to ASP.NET. I am suggesting this because it appears like you're coming back to programming after a while... for a new application?