hi All,
Think i make a simple mistake but i dont see what.
CboFlashmode is a spinner filled with 4 values (auto, on, off and torch) and depending on the value you select the camera will be set to that value.
But in the code below its goes always to the else statement even when the value is 1 of the 3 other values.
What do i wrong?
Think i make a simple mistake but i dont see what.
CboFlashmode is a spinner filled with 4 values (auto, on, off and torch) and depending on the value you select the camera will be set to that value.
But in the code below its goes always to the else statement even when the value is 1 of the 3 other values.
What do i wrong?
B4X:
Sub cboFlashMode_ItemClick (Position As Int, Value As Object)
Dim sWaarde As String = cboFlashMode.SelectedItem.ToUpperCase
Select sWaarde
Case "ON"
camera1.FlashOn
Case "OFF"
camera1.FlashOff
Case "TORCH"
camera1.FlashTorch
Case Else
camera1.FlashAuto
End Select
End Sub
Last edited: