ListBox remove selected item?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • woter324
    Forum Member
    • Jun 2005
    • 1

    ListBox remove selected item?

    Any ideas on how to remove the selected item from a list box.

    Created a button and added the following code:

    remove=ListBox.GetSelected("Server_ListBox");
    ListBox.DeleteItem("Server_ListBox", remove);

    Doesn't error, but doesn't remove the selected item

    Many thanks in advance.

    Woter
  • Corey
    Indigo Rose Staff Alumni
    • Aug 2002
    • 9745

    #2
    Hi. It's simply a matter of that function returning a table as opposed to a variable. Here's a working example attached. The actions are in the button's "On Click" event area. Hope that helps. :yes

    For more on tables, check out the free video lesson in the "CD 3" area of http://www.speedytraining.com :yes
    Attached Files

    Comment

    Working...
    X