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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
jeyaprakash
Posts: 33
Registered: ‎07-16-2008

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 ?
Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
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.
Found a bug? Report it using the Issue Tracker
Please use plain text.