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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Hi,
int numberOfUsers = 7;
result.setSize(0);
for(int i=0;i<numberOfUsers;i++)
{
result[i]["username"] = "the username";
result[i]["password"] = "the password";
}