Re: [Gambas-user] ListBox selection

2011-06-15 Thread Demosthenes Koptsis
On Wed, 2011-06-15 at 20:25 +0200, tobias wrote: > DIM i AS Integer > >i = 0 >WHILE i < ListBox1.Count > 'is it selected? > IF ListBox1[i].Selected THEN >'remove and... >ListBox1.Remove(i) >DEC i > ENDIF > INC i >WEND > > or did i still not

Re: [Gambas-user] ListBox selection

2011-06-15 Thread Demosthenes Koptsis
Yes all of you have understood correctly what i want to do. Of course Bad Index problem appears and for that i implement this code: - Public Sub btnRemove_Click() Dim i As Integer Dim sSelected As New String[] sSelected.Clear For i = 0 To lstBox.Co

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
hi, oh well, now i think i understood. but this doesn't change my answer: you don't need find to get the index of a special item. you said, you selected one or multiple items and you want to remove them. no problem, use the method i mentioned earlier in this topic: PUBLIC SUB Button1_Click()

Re: [Gambas-user] ListBox selection

2011-06-15 Thread Benoît Minisini
> i have in a ListBox the next values > > index0, 1 > index1, 11 > index2, 111 > index3, > index4, 11 > > i want to multiple select values and able to delete them. > > to do this i use lstBox.Find() to get the selected index from > lstBox[i].Text > > But Find returns the first value which

Re: [Gambas-user] ListBox selection

2011-06-15 Thread Fabien Bodard
that is a good question ... as the deleting action change indexes... 2011/6/15 tobias : > hi, > > it's not clear to me what you want exactly. > > "i want to multiple select values and able to delete them." > > you want to select multiple items and delete them all? but why do you > need Find() the

Re: [Gambas-user] Installing on Mac OSX 10.6.7

2011-06-15 Thread François Gallo
Le 15 juin 2011 à 17:13, Hugh Wallis a écrit : > Merci bien François > > I'll look out for any news > > Currently the following programs are available for Mac OS X : - the archiver - the compiler - the interpreter the main/ directory and its sub-directories compile fine. Some components co

Re: [Gambas-user] Installing on Mac OSX 10.6.7

2011-06-15 Thread Hugh Wallis
Merci bien François I'll look out for any news On 2011-06-15, at 11:00 , François Gallo wrote: > > > > > There is no Gambas packages for the moment to Mac OS X. > However i'm working on the portage. > I think i'm the alone to do that. > > > Le 15 juin 2011 à 16:54, Hugh Wallis a écrit

Re: [Gambas-user] Installing on Mac OSX 10.6.7

2011-06-15 Thread François Gallo
There is no Gambas packages for the moment to Mac OS X. However i'm working on the portage. I think i'm the alone to do that. Le 15 juin 2011 à 16:54, Hugh Wallis a écrit : > Does anyone have detailed instructions for installing Gambas on Mac OSX > (10.6.7)? Is it even possible? I can't

[Gambas-user] Installing on Mac OSX 10.6.7

2011-06-15 Thread Hugh Wallis
Does anyone have detailed instructions for installing Gambas on Mac OSX (10.6.7)? Is it even possible? I can't find too much about it in the archives Thanks -- EditLive Enterprise is the world's most technically advanced

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
hi, it's not clear to me what you want exactly. "i want to multiple select values and able to delete them." you want to select multiple items and delete them all? but why do you need Find() then? can you explain it, please? --

Re: [Gambas-user] ListBox selection

2011-06-15 Thread Demosthenes Koptsis
i have in a ListBox the next values index0, 1 index1, 11 index2, 111 index3, index4, 11 i want to multiple select values and able to delete them. to do this i use lstBox.Find() to get the selected index from lstBox[i].Text But Find returns the first value which is found and if i select th

Re: [Gambas-user] ListBox selection

2011-06-15 Thread Demosthenes Koptsis
Thanks for the answers. They are really well explained! On Wed, 2011-06-15 at 12:51 +0200, tobias wrote: > but to answer your question > "is there a way to get in an array the selected items?" > > no, this isn't possible because .ListBoxItems are virtual objects you > can't store them into array

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
but to answer your question "is there a way to get in an array the selected items?" no, this isn't possible because .ListBoxItems are virtual objects you can't store them into arrays but they only have .Selected and .Text, you know they're selected so the only thing you may need is .Text (as su

Re: [Gambas-user] ListBox selection

2011-06-15 Thread tobias
Hi, yes, it's pretty straightforward, just use ListBox[Index].Selected (just to get their texts not the whole object in this example): DIM i AS Integer FOR i = 0 TO ListBox1.Count - 1 IF ListBox1[i].Selected THEN PRINT ListBox1[i].Text ENDIF NEXT regards, tobi --

[Gambas-user] ListBox selection

2011-06-15 Thread Demosthenes Koptsis
Hi all, i make an example for ListBox control and i have some questions. After a SelectAll or multiple-select, is there a way to get in an array the selected items? -- Regards, Demosthenes Koptsis. -- EditLive Enterp