I'm trying to use a seekbar as a volume control for a mediaplayer.
I'm getting the following error when I try to compile:
Here's my code:
Can someone point out what I'm doing wrong? :BangHead:
Mucho Thanko!
- Highwinder
I'm getting the following error when I try to compile:
B4X:
Compiling code. Error
Error parsing program.
Error description: Parameter name cannot hide global variable name.
Occurred on line: 97
Sub volumeBar_ValueChanged (Value As Int, UserChanged As Boolean)
Here's my code:
B4X:
Sub volumeBar_ValueChanged (Value As Int, UserChanged As Boolean)
'Set sound volume
MediaPlayer1.SetVolume(volumeBar.Value /100, volumeBar.Value / 100)
End Sub
Can someone point out what I'm doing wrong? :BangHead:
Mucho Thanko!
- Highwinder