This is an simple overview of my script:
Here is the sample of the calling page
<%@ Language=VBScript %>
<% Response.Buffer=False %>
<%'Option Explicit
Response.Expires = -5000
Server.ScriptTimeout = 10800
%>
<!-- #INCLUDE FILE="include_page.asp" -->
<html>
<head>
<title></title>
</head>
<body>
<%
DeclareVar()
Response.write (Location) 'This was not returned by the procedure (pages are in same directory)
if Location = "CALIFORNIA" then
aryStores = array("GAP", "OLD_NAVY", "BANANA_REPUBLIC")
else
aryStores = array("GAP", "BANANA_REPUBLIC")
end if
for each Stores in aryStore
'......Do something
next
%>
</body>
</html>
'*****************************************************************************************************************************
Here is a sample of my include asp page (include_page.asp)
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
sub DeclareVar()
Dim Location
Dim Stores, aryStores
Dim CurrentMonth
Location = "CALIFORNIA"
end sub