Thanks Klaus for the quick reply.
But I'm NOT getting any "value" in my label box, here is my code
B4X:
Sub Globals
Dim lblto As Label
Dim seekbar1 As SeekBar
End Sub
Sub Activity_Create(FirstTime As Boolean)
lblto.Initialize("lblto")
Activity.LoadLayout("Main")
lblto.SetLayout(5%x,75%y,15%x,7%y)
seekbar1.Max = 100
End Sub
Sub seekbar1_Valuechange ( Value As Int, userchange As Boolean)
If userchange Then
lblto.Text = Value
End If
End Sub
The signature for your event sub is ALSO wrong.
The better way to debug these problems is to add a log when entering or exiting an event so you know that is actually fires.
B4X:
ValueChanged (Value As Int, UserChanged As Boolean)
The signature for your event sub is ALSO wrong.
The better way to debug these problems is to add a log when entering or exiting an event so you know that is actually fires.
B4X:
ValueChanged (Value As Int, UserChanged As Boolean)