Re: ListView Question
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 14, 2007
- 515 views
don cole wrote: > 1.) Is there a way to reverse the order (1 at the top; 10 at the bottom) > without > having to hit the headings tab? Yes. There are two ways. The first is to call ... atom OldVal OldVal = setLVInsert(1) Then from now on, all addLVItem calls will add to the end of the list. The second is to call addLVItem like this ... VOID &= adLVItem( {LV, -1}, 0, x) The -1 here means add to end of list. You can have other positive numbers here to add at other positions too. > 2.) Is there a way to put just the number in without using sprintf? > > VOID &=addLVItem(LV,0,x))? There is a bug in the code. It is meant to be able to do this but the signature is wrong. > Replace ... global function addLVItem(object id, atom iIcon, sequence text ) > With ... global function addLVItem(object id, atom iIcon, object text ) And then you can say things like for x = 1 to 10 do VOID &= addLVItem({LV,-1},0,x)) end for -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell