Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Fabien Bodard
Le 5 novembre 2010 15:46, Benoît Minisini a écrit : >> >> http://gambasdoc.org/help/comp/gb.qt4/.gridviewrows?v3 >> >> It is not in the doc, Benoit :), otherwise I would not say all this >> nonsense >> > > It is if you click on the "act as a read-only array" link. > > Regards, > > -- > Benoît Mini

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Benoît Minisini
> > http://gambasdoc.org/help/comp/gb.qt4/.gridviewrows?v3 > > It is not in the doc, Benoit :), otherwise I would not say all this > nonsense > It is if you click on the "act as a read-only array" link. Regards, -- Benoît Minisini

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Michael
Thanks Fabien, I found it eventually but don't you feel silly when it's staring you in the face Michael On 06/11/10 00:27, Fabien Bodard wrote: > Le 5 novembre 2010 13:26, Benoît Minisini > a écrit : >>> Sorry, this does not work. It only applies to the ListView. I do use a >>> ListView elsewhe

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Fabien Bodard
Le 5 novembre 2010 13:26, Benoît Minisini a écrit : >> Sorry, this does not work. It only applies to the ListView. I do use a >> ListView elsewhere and the easiest way is simply to loop through all >> items with the .movenext function and check for "If lvw.current.selected >> or lvw.item.selected"

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Benoît Minisini
> Sorry, this does not work. It only applies to the ListView. I do use a > ListView elsewhere and the easiest way is simply to loop through all > items with the .movenext function and check for "If lvw.current.selected > or lvw.item.selected". Then add the Key to the array of items to process. > >

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Michael
Sorry, this does not work. It only applies to the ListView. I do use a ListView elsewhere and the easiest way is simply to loop through all items with the .movenext function and check for "If lvw.current.selected or lvw.item.selected". Then add the Key to the array of items to process. Unfortun

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Michael
Thanks, I will give this a try. Michael On 05/11/10 18:09, user wrote: > Example with ListView control lswResults > > --- > ' Gambas class file > PRIVATE sFileArray AS String[] = [""] > PRIVATE iKeyArray AS Integer[] = [0] > PRIVATE bKeyControlPressed AS

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread Fabien Bodard
true ... it seem it miss a function that can return an array of selected cells so we can parse the cells . Ex: Dim iLastRow as integer =-1 For each Cells in GridView.SelectedItems if iLastRow<>Cells.Row then aiRows.Add(Cells.Row) endif next But it miss some things to do that a cell i

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-05 Thread user
Example with ListView control lswResults --- ' Gambas class file PRIVATE sFileArray AS String[] = [""] PRIVATE iKeyArray AS Integer[] = [0] PRIVATE bKeyControlPressed AS Boolean = FALSE PRIVATE bSellectAllPressed AS Boolean = FALSE PUBLIC SUB Form_Ope

Re: [Gambas-user] Gridview Select Multiple rows.

2010-11-04 Thread user
One solution is to use a dynamic array, and when user click a row to check if it is selected. if it is selected check if is in array if row is in array the user want to remove it, remove record from array if row is not in array the user want to add it to selection, add it to array. if it is not s

[Gambas-user] Gridview Select Multiple rows.

2010-11-04 Thread Michael
I'm a newbie to Gambas and very impressed. Managed to solve all my queries and port apps from VB. However I have one problem that has me beat:) I have a GridView with Mode = Multiple and can select multiple rows; either sequentially or at random. So far so good as similar to VB. I want to loop th