interlnk Member Licensed User Dec 19, 2017 #1 Why this is not right? B4X: dim text as string = "Hello" dim arr(1) as array arr(0) = text If text = arr(0) Then ToastMessageShow("Hello", False) End If
Why this is not right? B4X: dim text as string = "Hello" dim arr(1) as array arr(0) = text If text = arr(0) Then ToastMessageShow("Hello", False) End If
R ronell Well-Known Member Licensed User Longtime User Dec 19, 2017 #2 B4X: dim text as string = "Hello" dim arr(1) as string ' <----- arr(0) = text If text = arr(0) Then ToastMessageShow("Hello", False) End If Upvote 0
B4X: dim text as string = "Hello" dim arr(1) as string ' <----- arr(0) = text If text = arr(0) Then ToastMessageShow("Hello", False) End If
interlnk Member Licensed User Dec 19, 2017 #3 Sorry. The code was: B4X: dim text as string = "Hello" dim arr(1) as String arr(0) = text If text = arr(0) Then ToastMessageShow("Hello", False) End If Upvote 0
Sorry. The code was: B4X: dim text as string = "Hello" dim arr(1) as String arr(0) = text If text = arr(0) Then ToastMessageShow("Hello", False) End If
R ronell Well-Known Member Licensed User Longtime User Dec 19, 2017 #4 what is the problem? that code is correct Upvote 0