Recent

Author Topic: Delete an item from a TListBox  (Read 3386 times)

Sora-Kun

  • Full Member
  • ***
  • Posts: 162
  • I can smell your presence ...
    • Sora-Kun
Delete an item from a TListBox
« on: June 16, 2010, 08:51:04 am »
Hello,
  how to delete a selected item from a TListBox ?   :o :o
Thanks
if nothing suites you, make it your self!
The Revolution, Genesis. The next generation IDE.
If you want to help, PM me.

Made in Lazarus.
Soon, in The WWW.

JohnvdWaeter

  • Full Member
  • ***
  • Posts: 171
    • http://www.jvdw.nl
Re: Delete an item from a TListBox
« Reply #1 on: June 16, 2010, 09:00:38 am »
ehm...

listbox1.items.delete(n)

or
if listbox1.itemindex>=0
 then listbox1.items.delete(listbox1.itemindex)

John

 

TinyPortal © 2005-2018