Re: [Gambas-user] indexing of buttons

2010-01-30 Thread Fabien Bodard
Display.Caption = Display.Caption + Digits(Index).Caption in gambas : public sub Digit_click() Display.Text = Display.Text & LAST.Text end 2010/1/28 Ron_1st : > On Wednesday 27 January 2010, Kadaitcha Man wrote: >> 2010/1/27 Fiddler63 : >> >> > In gambas I get an error if I give more that one bu

Re: [Gambas-user] indexing of buttons

2010-01-28 Thread Ron_1st
On Wednesday 27 January 2010, Kadaitcha Man wrote: > 2010/1/27 Fiddler63 : > > > In gambas I get an error if I give more that one button the same name. > > How do I index a row of buttons in Gambas ? > > You don't. Gambas is not VB; it does not suppor, and rightly so, > arrays of control objects

Re: [Gambas-user] indexing of buttons

2010-01-27 Thread Kadaitcha Man
2010/1/27 Fiddler63 : > In gambas I get an error if I give more that one button the same name. > How do I index a row of buttons in Gambas ? You don't. Gambas is not VB; it does not suppor, and rightly so, arrays of control objects in the way that VB does; even the more modern .NET revisions do n

[Gambas-user] indexing of buttons

2010-01-26 Thread Fiddler63
On a basic type calculator I would like to index the buttons, ie 0 to 9, plus, minus etc. In VB the following code does that when a button is pressed: ' 'all the buttons has the name "Digits" Private Sub Digits_Click(Index As Integer) If ClearDisplay Then Di