L
Liza
Hi guys,
can anyone explain line number 5 to me. i don't quite understand what
is going on there and why.
1 <script language="vbscript" runat="server">sub Application_OnStart
2 getcustomers
3 end subsub getcustomers
4 set conn=Server.CreateObject("ADODB.Connection")
5 conn.Provider="Microsoft.Jet.OLEDB.4.0"
6 conn.Open "c:/webdata/northwind.mdb"
7 set rs=conn.execute("select name from customers")
8 Application("customers")=rs.GetRows
9 rs.Close
10 conn.Close
11 end sub</script>
also what is the meaning of the key word set here. is it an array? is
it a connection ( i ask this cos it gets "closed" later in line 9)
also i presume that customer would need to be declared somewhere as...
dim customers(aNumber). am i correct?
if so, how would i be sure that the size given to the "customers"
array would be big enough?
is there such thing as an array that can hold any number of elements
in ASP?
thanks guys.
Liza
can anyone explain line number 5 to me. i don't quite understand what
is going on there and why.
1 <script language="vbscript" runat="server">sub Application_OnStart
2 getcustomers
3 end subsub getcustomers
4 set conn=Server.CreateObject("ADODB.Connection")
5 conn.Provider="Microsoft.Jet.OLEDB.4.0"
6 conn.Open "c:/webdata/northwind.mdb"
7 set rs=conn.execute("select name from customers")
8 Application("customers")=rs.GetRows
9 rs.Close
10 conn.Close
11 end sub</script>
also what is the meaning of the key word set here. is it an array? is
it a connection ( i ask this cos it gets "closed" later in line 9)
also i presume that customer would need to be declared somewhere as...
dim customers(aNumber). am i correct?
if so, how would i be sure that the size given to the "customers"
array would be big enough?
is there such thing as an array that can hold any number of elements
in ASP?
thanks guys.
Liza