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
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
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
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