I have set up a multi selection list box and use the following code to find the lines selected:
LOCAL I AS LONG
LOCAL ENTRIES AS LONG
DIM LINELIST(LINECOUNT) AS LOCAL LONG
CONTROL SEND hDlg,%ID_LIST,%LB_GETSELITEMS,LINECOUNT,VARPTR(LINELIST()) TO ENTRIES
If I select 3 Lines ENTRIES returns 3 but the array LINELIST() is empty.
(LINECOUNT has the number of lines in the listbox).
What is the problem?
LOCAL I AS LONG
LOCAL ENTRIES AS LONG
DIM LINELIST(LINECOUNT) AS LOCAL LONG
CONTROL SEND hDlg,%ID_LIST,%LB_GETSELITEMS,LINECOUNT,VARPTR(LINELIST()) TO ENTRIES
If I select 3 Lines ENTRIES returns 3 but the array LINELIST() is empty.
(LINECOUNT has the number of lines in the listbox).
What is the problem?
Comment