Count the List-Items

obsolete: use list.GetLength() instead

(Sample Code taken from the DroidScript Google-Group)

list_item_count.js
function GetListItemCount( list )
{
    //Get a comma separated string of items from the list
    var itemString = list.GetList( "," );
 
    //Split the comma separated item string into an array of items
    var itemArray = itemString.split( "," );
 
    return itemArray.length;
}