OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Fred Tomke on May 10, 2009, 11:14:37 AM

Title: ListView_SortTextItems
Post by: Fred Tomke on May 10, 2009, 11:14:37 AM
Hello,

before adding a bug report I want to be sure that I don't make anything wrong. I have a listview with 9 columns. All cells include data, the cells of column 2 are numeric data. After OnColumnClick that following event function will be executed. After that I only see a listview with the same number of items but all of them are empty (strings). What am I doing wrong?

Code (autolisp) Select

(defun c:gis_sc_overlap_lst_ovl_OnColumnClick (intColumn /)
   (if (= intColumn 2)
     (dcl_ListView_SortNumericItems gis_sc_overlap_lst_ovl intColumn (vl-bb-set '***sc_overlap_ovlsort*** (not (vl-bb-ref '***sc_overlap_ovlsort***))))
     (dcl_ListView_SortTextItems gis_sc_overlap_lst_ovl intColumn (vl-bb-set '***sc_overlap_ovlsort*** (not (vl-bb-ref '***sc_overlap_ovlsort***))))
   ); if
); c:gis_sc_overlap_lst_ovl_OnColumnClick


Fred
Title: Re: ListView_SortTextItems
Post by: owenwengerd on May 10, 2009, 08:33:33 PM
This is now fixed in Alpha 5.