dieses script:
Set RS_2 = Server.CreateObject("ADODB.Recordset")
RS_2.Open sql, ConnStr, 3, 3
anz_row = CInt(RS_2.RecordCount)
Dim myArray(anz_row)
bringt diesen fehler:
Kompilierungsfehler in Microsoft VBScript error '800a0402'
Ganzzahlige Konstante erwartet
/asp/event_buchung2.asp, line 226
Dim myArray(anz_row)
kann mir jemand auf die sprünge helfen?
gruss
michi
Bsp.:
Dim myArray()
Set RS_2 = Server.CreateObject("ADODB.Recordset")
RS_2.Open sql, ConnStr, 3, 3
anz_row = CInt(RS_2.RecordCount)
ReDim myArray(anz_row)
Grüße
Christian
danke vielmals
gruss
michi
"Christian Hau" <ch....@leco-mm.de> wrote in message
news:39D0E21C...@leco-mm.de...
> Hi,
>
> Wyder Michael wrote:
> >
> > hallo ng
> >
> > dieses script:
> > Set RS_2 = Server.CreateObject("ADODB.Recordset")
> > RS_2.Open sql, ConnStr, 3, 3
> > anz_row = CInt(RS_2.RecordCount)
> > Dim myArray(anz_row)
> >
> > bringt diesen fehler:
> > Kompilierungsfehler in Microsoft VBScript error '800a0402'
> > Ganzzahlige Konstante erwartet
> >
> > /asp/event_buchung2.asp, line 226
> >
> > Dim myArray(anz_row)
> > kann mir jemand auf die sprünge helfen?
> > gruss
> > michi
>
>
> Bsp.:
>
> Dim myArray()
>
> Set RS_2 = Server.CreateObject("ADODB.Recordset")
> RS_2.Open sql, ConnStr, 3, 3
> anz_row = CInt(RS_2.RecordCount)
>
> ReDim myArray(anz_row)
>
>
> Grüße
>
> Christian