[thelist] dim variables in include file (traditional ASP)

Ken Schaefer Ken at adOpenStatic.com
Wed Dec 7 16:06:17 CST 2005


My suggestion would be to have routines (functions/subs) and classes only in
your include files. Then you don't need to worry about not having variables
declared, or worse, redeclaring variables, since any variables you have will
be scoped to the function/sub only. You could put a call to the routine in
your main page (if required).

Cheers
Ken

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Canfield, Joel
Sent: Thursday, 8 December 2005 4:35 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] dim variables in include file (traditional ASP)

> since you call includes outside of script blocks, is it possible your 
> include doesn't have the script blocks in place within the file?

d'oh. a lot.

> without seeing the structure, hard to debug...

yer doin' find, aard; all happy here now (except for the stupid part)

is it too early for a drink?
 



More information about the thelist mailing list