Results 1 to 4 of 4

Thread: Function problem....=0 *Resolved by CornedBee*

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    78

    Function problem....=0 *Resolved by CornedBee*

    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:
    1. public static String ProcessLogin(Vector UL, String Data, int Logging)
    2.     {
    3.         String sReturn = "";
    4.         String[] sSplit = new String[4];
    5.         int i = 0;
    6.         String sTemp = "";
    7.        
    8.         sSplit = SplitSaP(Data);
    9.        
    10.         for(i = 0; i < UL.size(); i++)
    11.         {
    12.             if(sSplit[1] != ((UserList)UL.elementAt(i)).sUsername)
    13.             {
    14.                 sReturn = "F";
    15.             }
    16.             else
    17.             {
    18.                 sReturn = "S";
    19.                 i = UL.size() + 1;
    20.                 System.out.println("Raaar");
    21.                 break;
    22.             }
    23.            
    24.             if(Logging == 10)
    25.             {
    26.                 System.out.println(((UserList)UL.elementAt(i)).sUsername +"=?"+ sSplit[1]);
    27.                 System.out.println(sSplit[2] +"=?"+ ((UserList)UL.elementAt(i)).sPassword);
    28.                 System.out.println(sReturn);
    29.             }
    30.         }
    31.         return sReturn;  
    32.     }
    Last edited by Balron; Oct 12th, 2003 at 01:14 PM.
    - Your Local Drunk
    AIM: Asharlin
    YIM: Asharlin
    MSN: [email protected]
    ICQ: 177568857

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width