tomhartland
03-29-2004, 04:50 AM
Greetings :-)
I've been struggling with this for while without success. If anybody has an ideas...?
The problem occured in a big site, but this tiny bit of code will replicate the problem:
"Constants" file "tom.inc"...Public Const TOM_TEST_1 = 123
"tom.asp"...<script language="vbscript" src="tom.inc"
runat="server"></script>
<%
Dim strTom
Execute "strTom = TOM_TEST_1"
%>
This results in...
Name redefined: 'TOM_TEST_1'
/test/tom.inc, line 1
Am I missing something to do with the execution order of the "tom.inc" file in comparison with the rest of the code?
Any help would be greatly appreciated.
Tom :-)
I've been struggling with this for while without success. If anybody has an ideas...?
The problem occured in a big site, but this tiny bit of code will replicate the problem:
"Constants" file "tom.inc"...Public Const TOM_TEST_1 = 123
"tom.asp"...<script language="vbscript" src="tom.inc"
runat="server"></script>
<%
Dim strTom
Execute "strTom = TOM_TEST_1"
%>
This results in...
Name redefined: 'TOM_TEST_1'
/test/tom.inc, line 1
Am I missing something to do with the execution order of the "tom.inc" file in comparison with the rest of the code?
Any help would be greatly appreciated.
Tom :-)