[Gambas-user] ListView - Multiselect

Bruce bbruen at ...2308...
Wed Jun 27 13:57:38 CEST 2012


On Wed, 2012-06-27 at 03:44 -0700, Valeriu wrote:
> Good day!
> 
> How to select the selected items from the list ? ....
> Thank you.
> 
> My code:     ???
> 
> 
> Dim i As Integer
> Dim ListGlobals As String
>   ListGlobals = ""
>   Select Message.Question("We delete the Global(s) " & File1.Item.Selected &
> ", yagree ?...", "Yes", "No", "Don't know")
>   Case 1
>     'For i = File1.Count To 1 Step -1
>     For i=0 to File1.Count-1
>       If File1.Item.Selected = True Then
>         'File1.MoveCurrent
>         ListGlobals = ListGlobals & Trim(File1.Item.Text) & "|"
>         Endif
>     Next
>      Message(ListGlobals)
>   Case 2
>    Return
>   End Select
> 


Hi Valeriu,

See the attached project source archive.

regards
Bruce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvwmultiselect-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 5154 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120627/d607f63a/attachment.bin>


More information about the User mailing list