Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 33
Registered: ‎07-16-2008
My Device: bold

Remove Todo items

try { Todo = (ToDoList) PIM.getInstance().openPIMList(PIM.TODO_LIST, PIM.READ_WRITE); for (Enumeration todoitems = Todo.items();todoitems.hasMoreElements();) { ToDo todoelement = (ToDo) todoitems.nextElement(); Todo.removeToDo(todoelement); } } catch (PIMException ex) { system.out.println(ex.toString()); }

 

My code Delete all todo items on  8800 ( 4.5 os)  but it donot work for 4.2 os how to delete Todo items ?
Highlighted
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Remove Todo items

What behaviour are you seeing in version 4.2?  Is an error or exception thrown?  What is the BlackBerry model and 4 digit handheld software version you are testing on?  You can find this under Options, About on the BlackBerry.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker