I have the following code in a service module
In my main module I have.
Obviously this is not going to work because Value can not be passed like this. So how do I pass the Value variable into the setVolume sub?
B4X:
sub setVolume(volume as Int)
mp.SetVolume(10/volume,10/volume)
end sub
In my main module I have.
B4X:
Sub barVolume_ValueChanged (Value As Int, UserChanged As Boolean)
CallSub(Radio,"setVolume(Value)")
End Sub
Obviously this is not going to work because Value can not be passed like this. So how do I pass the Value variable into the setVolume sub?