Problem deleting content in the listfield ths.

Hello

I'm loading data in the listfield. Click a button on the event I want to remove all items from the listfiled.

removal of used loop my self:

for (int y = 0; y)<>
{
pilllist. Delete (y);
}

before this action, I had 9 elements in the list. But after this loop, I still 4 items in the list. I don't know why? and how its 4 missing items.

but I used the same loop to display the contents of the listfied.

for (int y = 0; y)<>
{
Dialog.Inform ("Current Content" + y + "" + myCallback.get(pilllist,y));
}

but in this loop, I get all the data and display them in the dialog box.

1 can tell me where I'm wrong?

2. is there another way to clear the contents of the list?

Thanks Simon,.

I found where I was wrong. Thanks for the reply

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for