[Gambas-user] Referencing an array element with boolean

2014-06-21 Thread Patrik Karlsson
Many years ago when I was programming in Delphi I used to have object arrays of size 2 and referencing to the element index with true and false. This was very very useful. It was possible since false=0 and true=+1. In Gambas we have false=0 and true=-1. So now I came up with: Dim sMoods As

Re: [Gambas-user] Referencing an array element with boolean

2014-06-21 Thread Benoît Minisini
Le 21/06/2014 09:47, Patrik Karlsson a écrit : Many years ago when I was programming in Delphi I used to have object arrays of size 2 and referencing to the element index with true and false. This was very very useful. It was possible since false=0 and true=+1. In Gambas we have false=0 and

Re: [Gambas-user] Referencing an array element with boolean

2014-06-21 Thread Tobias Boege
On Sat, 21 Jun 2014, Patrik Karlsson wrote: Many years ago when I was programming in Delphi I used to have object arrays of size 2 and referencing to the element index with true and false. This was very very useful. It was possible since false=0 and true=+1. In Gambas we have false=0 and