I want to use a global variable in a procedure ......
globalInfo.adp
<%
global test
set test "Thisisatest"
%>
showGlobal.adp
<%
#ns_adp_include globalInfo.adp
proc globalTest {someParam} {
global test
set testInProc $test
}
%>
It fails saying no such variable test
Any idea ?
P
-----Original Message-----
From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
Of Prakash Sinha
Sent: Monday, July 09, 2001 12:34 PM
To: [EMAIL PROTECTED]
Subject: [AOLSERVER] global vars
i have two files in the same directory.....
globalInfo.adp
<%
global test
set test "Thisisatest"
%>
showGlobal.adp
<%
#ns_adp_include globalInfo.adp
global test
ns_adp_puts $test
%>
It fails giving error test is undefined.
Any idea?
P