|
 |
asp_web_howto thread: How to check if a variable has been defined?
Message #1 by "Sam Hulick" <samh1974@h...> on Fri, 19 Jul 2002 17:26:43
|
|
I have an #included ASP page that refers to strUser. Problem is, if
strUser is not Dimmed previously, I get a runtime error. How can I do a
check if strUser has been Dimmed already?
Thanks
Message #2 by "Ken Schaefer" <ken@a...> on Mon, 22 Jul 2002 13:39:10 +1000
|
|
Wrap all included code into routines. That way, all variables are local to
the routine only. This way, you always know what global variables are
defined (they are defined in the calling page)
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Sam Hulick" <samh1974@h...>
Subject: [asp_web_howto] How to check if a variable has been defined?
: I have an #included ASP page that refers to strUser. Problem is, if
: strUser is not Dimmed previously, I get a runtime error. How can I do a
: check if strUser has been Dimmed already?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |