Re: [Gambas-user] drove me crazy

2010-01-20 Thread Charlie Reinl
Am Mittwoch, den 20.01.2010, 13:01 -0700 schrieb Dimitris Anogiatis: > Charlie, Benoit, > > Wouldn't something like that usually work? > > PUBLIC SUB Main() > DIM col1 AS NEW Collection > DIM col2 AS NEW Collection > DIM sKey AS String > Dim Counter as Integer > col1.Add("1", "one") > col1.Add(

Re: [Gambas-user] drove me crazy

2010-01-20 Thread Dimitris Anogiatis
Charlie, Benoit, Wouldn't something like that usually work? PUBLIC SUB Main() DIM col1 AS NEW Collection DIM col2 AS NEW Collection DIM sKey AS String Dim Counter as Integer col1.Add("1", "one") col1.Add("2", "two") col1.Add("3", "three") col1.Add("4", "four") PRINT "Returns the key of the l

Re: [Gambas-user] drove me crazy

2010-01-20 Thread Charlie Reinl
Am Mittwoch, den 20.01.2010, 17:27 +0100 schrieb Benoît Minisini: > > Am Dienstag, den 19.01.2010, 17:30 -0700 schrieb Dimitris Anogiatis: > > > Hey Charlie, > > > > > > Try changing this line > > > > > > sKey = col1.Key > > > > > > to > > > > > > sKey = sElem.Key > > > > > > > > > Hope t

Re: [Gambas-user] drove me crazy

2010-01-20 Thread Benoît Minisini
> Am Dienstag, den 19.01.2010, 17:30 -0700 schrieb Dimitris Anogiatis: > > Hey Charlie, > > > > Try changing this line > > > > sKey = col1.Key > > > > to > > > > sKey = sElem.Key > > > > > > Hope this helps > > > > Regards, > > Dimitris > > > > On Tue, Jan 19, 2010 at 4:09 PM, Charlie Rei

Re: [Gambas-user] drove me crazy

2010-01-20 Thread Charlie Reinl
Am Dienstag, den 19.01.2010, 17:30 -0700 schrieb Dimitris Anogiatis: > Hey Charlie, > > Try changing this line > > sKey = col1.Key > > to > > sKey = sElem.Key > > > Hope this helps > > Regards, > Dimitris > > On Tue, Jan 19, 2010 at 4:09 PM, Charlie Reinl wrote: > > > Salut Benoi

Re: [Gambas-user] drove me crazy

2010-01-19 Thread Dimitris Anogiatis
Hey Charlie, Try changing this line sKey = col1.Key to sKey = sElem.Key Hope this helps Regards, Dimitris On Tue, Jan 19, 2010 at 4:09 PM, Charlie Reinl wrote: > Salut Benoit, > > its about Collection KEY and Debug-Window on gambas2. > > If you run that project, and open col1 and

[Gambas-user] drove me crazy

2010-01-19 Thread Charlie Reinl
Salut Benoit, its about Collection KEY and Debug-Window on gambas2. If you run that project, and open col1 and col2 in a Debug-Window (DBl-Click on the var), the Collection Key is always the last enumerated element. If you run it without Debug-Window or only col2 in a Debug-Window , the Collecti