Re: Listview help needed
- Posted by Joshua Silva <joshuasilva at att.net> Mar 03, 2002
- 437 views
no ----- Original Message ----- From: <annys_n at hotmail.com> To: "EUforum" <EUforum at topica.com> Subject: Re: Listview help needed > > Hello, > > I think your answer is written in the attachment. > I didn't write it myself, i'm still learning EU & English : ) > > Greetz, > nancy > > PS : thx to all EU-users who send their thoughts, it helps me a lot with my > EU-study > Hope some day I will have something to write too ; ) > > ----- Original Message ----- > From: "Matthew Lewis" <matthewwalkerlewis at YAHOO.COM> > To: "EUforum" <EUforum at topica.com> > Sent: Thursday, February 28, 2002 3:00 PM > Subject: RE: Listview help needed > > > > > -----Original Message----- > > > From: jordah ferguson [mailto:jorfergie03 at yahoo.com] > > > > > > Some one give assistance please.......or code on how you can > > > make a listview > > > column sort in only ascending order, when a menuItem is clicked > > > > This is a quick fix (it won't allow for descending sorts). In w32lv.ew, > > just comment out anything using 'sign': > > > > integer sign, subitem, column, owner > > sequence text > > sequence textvalue > > > > owner = find(id, lv_id) > > column = lv_allowsort[owner] > > if column < 0 then > > --sign = -1 > > column = - column > > --else > > -- sign = 1 > > end if > > > > text = { peek_string(lvitem_data[lParam1][2][column][1] ), > > peek_string(lvitem_data[lParam2][2][column][1] ) } > > > > if lv_columnattr[owner][column][sort_numeric] then > > textvalue = TextToNumber({text[1], True}) > > if textvalue[2] = 0 then > > text[1] = textvalue[1] > > end if > > > > textvalue = TextToNumber({text[2], True}) > > if textvalue[2] = 0 then > > text[2] = textvalue[1] > > end if > > end if > > > > if lv_columnattr[owner][column][sort_case] = False then > > text[1] = lower(text[1]) > > text[2] = lower(text[2]) > > end if > > return compare(text[1], text[2]) --* sign > > end function > > > > > > Matt Lewis > > > > > > >