Greetings !
I am very new to B4A, and did quite a bit of searching to solve this problem:
It compiles OK, but when touching the btnAplomb on the tablet, the program stops and shows the error in the IDE (program runs on tablet, connected using B4A Bridge)
I am overlooking something obviously, but cannot find it.
Your help is appreciated
Nard
a.k.a. Plons
I am very new to B4A, and did quite a bit of searching to solve this problem:
B4X:
#Region Project Attributes
#ApplicationLabel: B4A voor Martijn
#VersionCode: 1
#VersionName: the basics
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Aplomb_logo As ImageView
Dim btnPreSelect1 As Button
Dim btnPreSelect2 As Button
Dim btnPreSelect3 As Button
Dim sbBlueSlider As SeekBar
Dim sbGreenSlider As SeekBar
Dim sbRedSlider As SeekBar
Dim sbWhiteSlider As SeekBar
Dim btnAplomb As Button
Dim imgAnnie As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Martijn2")
End Sub
'Removed all not-used subs in this forum post for clarity
Sub btnAplomb_Down
imgAnnie.Visible = 1
End Sub
Sub btnAplomb_Up
imgAnnie.Visible = 0
End Sub
I am overlooking something obviously, but cannot find it.
Your help is appreciated
Nard
a.k.a. Plons