Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Loading a string array into J2ME List Class

  • 13-04-2004 8:53am
    #1
    Closed Accounts Posts: 7


    Hi - need some urgent help.

    Trying to use List to display the output of a string array on screen as an IMPLICIT list.
    If I declare exactly what strings are to be in the listArray when I declare it I can use the method without any trouble and it works fine.

    list = new List("Staff: ", List.IMPLICIT, listArray, null);

    However, I want to load the up the String array listArray with other strings in a for loop:

    for(int i = 1; i <5; i++)
    {
    listArray = inputString;
    }

    When I try this my program stalls - am i messing up with how I'm loading the string or is there another problem? Will List accept a string array this is compiled in this way?

    Am programming for Palm BTW.

    Cheers!


Comments

Advertisement