Hello all.
Can anyone (pls) help me with my problem in the codes below. I'm getting a
"Invalid Descriptor Index" error in the line "alsoArray [i][0] =
rs.getInt("AN_No");". I know this is very simple, the first array (anArray)
have no problem. I just can't find what the error is. Thanks in advance.
String[][] anArray;
anArray = new String[30][];
int[][] alsoArray;
alsoArray = new int[30][];
int i = 0;
while (rs.next()) {
anArray[i] = new String[2]; //create
sub-array
anArray[i][0] = rs.getString("AN_ID");;
anArray[i][1] = rs.getString("AN_Name");
alsoArray[i] = new int[4]; //create
sub-array
alsoArray [i][0] = rs.getInt("AN_No");
alsoArray [i][1] = rs.getInt("AN_No1");
alsoArray [i][2] = rs.getInt("AN_No2");
alsoArray [i][3] = rs.getInt("AN_No3");
i = i + 1;
}
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
- Newbie Question Daniel Liu
- Newbie question Mikael Andr�asson
- Re: Newbie question Hans Bergsten
- Re: Newbie question Srinivasan S (Systems Engineering Group)
- Newbie question Charles Bukowski
- Newbie question Charles Bukowski
- Newbie question Edward Roe
- Re: Newbie question R MUTHUSWAMY
- Re: Newbie question Cezar Totth
- Re: Newbie question Andreas Eiserloh
- Re: Newbie Question Sol Christopher Gipulan
- Re: Newbie Question Mark Galbreath
- System.getProperites() ... Shuja Nawaz
- Re: System.getProper... Danny Rubis
- Re: Newbie Question Poornima Visvesvaran
- Re: Newbie Question Sol Christopher Gipulan
- Re: Newbie Question Mark Galbreath
- Newbie question Lefter, Cristian
- Re: Newbie question Mark Galbreath
- Re: Newbie question erik morton
- Re: Newbie question Lefter, Cristian
