It is a historical accident that list control referred to on the List page has been named ListView. That should probably be changed.
As regards your question about putting commas in a ListView, the simple fact seems to be that it cannot be done.
If you need something that looks/acts like a ListView, you will probably need to create a custom dialog.
I will post a sample function
myListView
in a couple of minutes.
//Called when application is started.
function OnStart()
{
// myListView can take list,title,callback
lvw1= myListView("aaa,bbb,ccc","my title",lvw1_OnTouch);
lvw1.Show();
// this is more like what you are looking for
var data = "Hi, Joe%how are you?";
lvw2 = myListView();
lvw2.SetList(data,"%");
lvw2.Show();
}
function lvw1_OnTouch(item,body,icon,index)
{
app.ShowPopup(item);
lvw1.Dismiss();
}
function myListView(list,title,callback)
{
var lv = app.CreateDialog( title,"noXcancel" );
var lay = app.CreateLayout( "Linear", "" );
var lst = app.CreateList( list,1,1 );
lay.AddChild( lst );
lv.AddLayout( lay );
if(callback) lst.SetOnTouch( callback );
else lst.SetOnTouch(_Cb(lv,"dfltCb"))
lv.dfltCb=function()
{lv.Dismiss();}
lv.SetList = function(list, delim)
{
lst.SetList(list, "%");
}
return lv
}
It is always good to know someone has understood the code and not just pasted it.