|
-
Aug 21st, 2008, 03:52 PM
#1
Thread Starter
Lively Member
[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.
Last edited by solitario; Aug 23rd, 2008 at 10:39 AM.
Reason: [RESOLVED]
-
Aug 22nd, 2008, 02:39 PM
#2
Re: declare a variable as global?
Declare it outside the function, just like you have.
Use it, as you plan to.
-
Aug 23rd, 2008, 10:39 AM
#3
Thread Starter
Lively Member
Re: declare a variable as global?
Thanks mendhak. I thought I would need a global keyword or something.
-
Aug 24th, 2008, 05:57 AM
#4
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|