error in sender why?
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("game1")
buattbl
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub buattbl
Dim k,j,y As Int
For x = 0 To 7
For y = 0 To 7
Dim but(64) As Button
k = ((y*8)+x)
but(k).Initialize("But")
panel1.AddView(but(k),9.5%x + (x*10.2%x),14.5%y + (y*7.8%y),10.3%x,7.8%y)
but(k).Tag = (k)
Next
Next
End Sub
Sub But_Click
Dim but(64) As Button
but(64) = Sender
Dim btnid As Int = but(64).Tag
Select a
Case 0
b = btnid
a = a + 1
but(b).Visible = False
Case 1
c = btnid
If b = c + 32 OR c = b + 32 Then
ToastMessageShow("anda benar",False)
but(b).Visible = False
but(c).Visible = False
Else
ToastMessageShow("anda salah",False)
but(b).Visible = True
but(c).Visible = True
End If
a = 0
End Select
End Sub