Announcement

Collapse
No announcement yet.

Listbox delete

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Listbox delete

    I´m using listbox and I need delete any item, the syntaxis
    is the folloming (I´m usin PB/DLL6.0):

    LISTBOX DELETE hDlg&, id&,pos&

    My problem is that Idn´t know identify the position of the select item

    Thanks.

  • #2
    Use %LB_GETCURSEL to get the currently selected item. Like this:

    Code:
      CONTROL SEND hDlg&, id&, %LB_GETCURSEL , 0, 0 TO pos&
      IF pos& <> %LB_ERR THEN
        LISTBOX DELETE hDlg&, id&, pos&
      END IF

    Comment

    Working...
    X