How can I remove / clear items out of a list control in Flex?

I have a list control in Flex that has been data bound to an e4x xml object from an HTTPService.

I would now like to have a button that clears the list, how can I do this?

I have tried:

list.dataProvider = null;

which does not seem to work, I have also tried:

list.dataProvider = {};

which clears the items but leaves [object,object] as the first item in the list...



list.dataProvider = new Array();

Need Your Help

Changing text in a QTextEdit

c++ qt qtextedit qregexp qtextcursor

Hi I am trying to make a function to scan through a QTextEdit, search for email addresses and phone numbers and change them to bold. When I run it it crashes my program with error

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.