hi Dimitris,
what control are you using? I can’t see a “List Box” control under JQMobile, just a “List” control. I see a “ListBox” under the JQWidgets controls though. Please specify what exactly you’re using.
also please include what “myNum” is set to.
I tried a bit with the JQMobile “List” control, but got a javaScript error saying “myList.addItem is not a function”. not very helpful.
Hi Dimitris,
where did you put your code? I initially tried what you did (as you see above), directly in the code window, and got the same errors.
But then I put the whole code into the project like this:
Form1.onshow=function(){
var myNum = 4;
var p=0;
var myArray=["one","two","three","four"];
while(p<myNum){
console.log(p+" : "+myArray[p]);
List1.addItem(myArray[p]);
p++;
}
}
And this worked. I did use the latest version of AppStudio.