[Gambas-user] columnview count how many are selected

Jack jscops at ...11...
Mon Feb 9 21:04:03 CET 2009


Le lundi 09 février 2009 20:01:01 Joshua Higgins, vous avez écrit :
> *** Correction
> i changed this line:
>  if columnview1.selected then inc nbc
> to this
> if columnview1.current.selected = TRUE then inc nbc

Excuse my mistake Joshua, you must use  columnview1.item.selected but not  
columnview1.current.selected 


nbc as integer = 0

public sub numberCount()
Columnview1.movefirst()
repeat
   if columnview1.Item.selected then inc nbc
until columnview1.movenext()
end

Jacky






More information about the User mailing list