Is there a way of doing something for every item in an array? I thought there was something called "foreach" that does this... then again, I don't really know.
For example:
js code:
var Test = new Array("test1", "test2", "test3");
var TestDesc = new Array("This is Test 1.", "This is Test 2.", "This is Test 3.");
var TestWnd = MsgPlus.CreateWnd("Windows.xml", "WndTest", 0);
foreach (Test)
{
TestWnd.LstView_AddItem("LstTest", Test);
TestWnd.LstView_SetItemText("LstTest", 0, 1, TestDesc)
}