Page 2 of 2
Re: GetGadgetItemAttribute() returning wrong value
Posted: Wed Jan 06, 2016 10:20 am
by TI-994A
collectordave wrote:Counting Columns in listicon
Can you use
Code: Select all
ColCount = 0
While GetGadgetItemText(0,-1,ColCount) <> "" ;Checks header text assumes all headers have some text
ColCount + 1 ; count the columns
Wend
Apparently so, as demonstrated in this working example by Kiffi:
>
count colums in a listicongadget
Re: GetGadgetItemAttribute() returning wrong value
Posted: Wed Jan 06, 2016 10:21 am
by TI-994A
collectordave wrote:Just noticed a funny thing while removing columns I was using
Code: Select all
For iloop = 1 To ColCount ;Do not remove column 0
RemoveGadgetColumn(lstResult, iloop)
Next
Which left a couple of columns each time...
It should be:
Code: Select all
For iloop = 1 To ColCount
RemoveGadgetColumn(lstResult, 1)
Next