|
-
September 30th, 2003, 07:07 AM
#1
Passing Array Variable has Application Variable (Need Clarification))
In Global.asa......................
</SCRIPT>
<SCRIPT LANGUAGE=VBScript RUNAT=Server Scope=Application>
Sub Application_OnStart
Dim gdictIcons(3)
gdictIcons(1) = "1 none"
gdictIcons(2) = "2 none"
gdictIcons(3) = "3 none"
Application("x(3)") = gdictIcons
End Sub
</SCRIPT>
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Session_OnStart
End Sub
Sub Session_OnEnd
Session.Abandon
End Sub
</SCRIPT>
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
In another file .ASP.............................
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P> </P>
<%
dim lv
lv=1
response.write " Soundar " & Application("x(" & lv & ")") & "!"
%>
</BODY>
</HTML>
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
I Could not able to display the Array values ???
Do guide me in this regard ...
Thank You !
your's
Soundar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|