Menu

array of structs

Help
Bob Manc
2003-06-30
2003-06-30
  • Bob Manc

    Bob Manc - 2003-06-30

    How would I create a result that is an array of structs? In this case I want to send back the user name and password of multiple users from the server.

     
    • Bill Zeller

      Bill Zeller - 2003-06-30

      Hi,

      int numberOfUsers = 7;
      result.setSize(0);

      for(int i=0;i<numberOfUsers;i++)
      {
          result[i]["username"] = "the username";
          result[i]["password"] = "the password";

      }

       

Log in to post a comment.