I'm sure the what I screwed up was simple but for the life of me I can't figure out what it is. This function ALWAYS returns the string letter F.
VB Code:
public static String ProcessLogin(Vector UL, String Data, int Logging) { String sReturn = ""; String[] sSplit = new String[4]; int i = 0; String sTemp = ""; sSplit = SplitSaP(Data); for(i = 0; i < UL.size(); i++) { if(sSplit[1] != ((UserList)UL.elementAt(i)).sUsername) { sReturn = "F"; } else { sReturn = "S"; i = UL.size() + 1; System.out.println("Raaar"); break; } if(Logging == 10) { System.out.println(((UserList)UL.elementAt(i)).sUsername +"=?"+ sSplit[1]); System.out.println(sSplit[2] +"=?"+ ((UserList)UL.elementAt(i)).sPassword); System.out.println(sReturn); } } return sReturn; }




Reply With Quote