sanjibnanda Active Member Licensed User Longtime User Oct 25, 2012 #1 Sir, How to compare the label Text Value on click_Item like B4X: Sub Spin1_ItemClick (Position As Int, Value As Object) If Value=someLabel.Text Then ..... Else ...... End Sub
Sir, How to compare the label Text Value on click_Item like B4X: Sub Spin1_ItemClick (Position As Int, Value As Object) If Value=someLabel.Text Then ..... Else ...... End Sub
klaus Expert Licensed User Longtime User Oct 25, 2012 #2 B4X: Sub Spin1_ItemClick (Position As Int, Value As Object) If Value = someLabel.Text Then ..... Else ...... End If End Sub If Value is a string or a number thats it. Best regards. Upvote 0
B4X: Sub Spin1_ItemClick (Position As Int, Value As Object) If Value = someLabel.Text Then ..... Else ...... End If End Sub If Value is a string or a number thats it. Best regards.
sanjibnanda Active Member Licensed User Longtime User Oct 26, 2012 #3 thanks for confirmation, and when i looked.. it was a problem with white spaces and got it resolved with RTrimSpaces and with by my LTrimSpaces that removes the leading white spaces... too B4X: Sub LTrimSpaces(s As String) As String Dim i As Int For i = 0 To s.Length - 1 If s.CharAt(i) <> " " Then Return s.SubString(i) End If Next End Sub and thanx for you help... Upvote 0
thanks for confirmation, and when i looked.. it was a problem with white spaces and got it resolved with RTrimSpaces and with by my LTrimSpaces that removes the leading white spaces... too B4X: Sub LTrimSpaces(s As String) As String Dim i As Int For i = 0 To s.Length - 1 If s.CharAt(i) <> " " Then Return s.SubString(i) End If Next End Sub and thanx for you help...