[Gambas-user] columnview count how many are selected
Jack
jscops at ...11...
Mon Feb 9 19:25:49 CET 2009
Le lundi 09 février 2009 19:09:40 Joshua Higgins, vous avez écrit :
> Hello,
>
> I'm using a columnview with the property Mode set to Multiple. What code do
> I need to let me count how many are currently selected. I tried
>
> ColumnView1.Current.Count but that always prints 0.
try this Joshua
nbc as integer = 0 'number count
public sub numberCount()
Columnview1.movefirst()
repeat
if columnview1.selected then inc nbc
until columnview1.movenext()
end
Regards.
Jacky
More information about the User
mailing list