hello all. happy new year.
im a bit rusty, so i need a bit of help if you can provide it.
in my project i have a listbox, that displays contents of a text file.
i click a button and it takes the selected lines (one at a time) and adds them to a list view, separating certain lines into certain columns. i would like to make it where i can select all in the list box or select multiple lines to add to the list view.
i have the properties for the listbox set to muliple for selection style. how can i get these items into the list view as ALL or MULTIPLE lines.
here is code snippet im currently using that i have working for 1 line at a time
i appreciate any and all help
(setq items (dcl_ListBox_GetSelectedItems dwgbrowser_Form3_ListBox1))
;;get title
(setq title (substr (nth 0 items) 1 42)) ;41
;;gets rev
(setq rev (substr (nth 0 items) 54)) ;53
(while (< (strlen rev) 6)
(setq rev (strcat rev " "))
); end while
;;gets dwg number
(setq dwgnum (substr (nth 0 items) 43 11)) ;11
(SETQ amrev1 dwgnum)
(defun make_list (strItem)
(list strItem)
)
(if sho_lst
(progn
(setq make_lst (mapcar 'list (make_list title) (make_list dwgnum) (make_list rev)))
(setq sho_lst (append sho_lst make_lst))
)
(progn
(setq make_lst (mapcar 'list (make_list title) (make_list dwgnum) (make_list rev)))
(setq sho_lst (append sho_lst make_lst))
)
)
(dcl_ListView_FillList dwgbrowser_Form3_ListView1 sho_lst)