Android Question please help me . i am new

Sub sendButton_Click
tempLabel.Text = ""
humidLabel.Text = ""
If tempLabel.Text =39 Then
Label3.Text = "FIELD"
Label3.TextColor = Colors.Red
else If tempLabel.Text =40 Then
Label3.Text = "FIELD"
Labe3.TextColor = Colors.Green
else If tempLabel.Text = Then
Label3.Text = "FIELD"
Label3.TextColor = Colors.Blue
End If
Dim Buffer() As Byte
Buffer = "Arun".GetBytes("UTF8")
TcpStreams.Write(Buffer)
End Sub
 

eurojam

Well-Known Member
Licensed User
Longtime User
Hi welcome!

Please try to ask a question? what is going wrong? And use code tags for your code...see https://www.b4x.com/android/forum/threads/how-to-ask-a-question.9140/

2017-09-04 14_04_53.png
 
Last edited:
Upvote 0

eps

Expert
Licensed User
Longtime User
There's a typo in your code..

B4X:
Sub sendButton_Click
tempLabel.Text = ""
humidLabel.Text = ""
If tempLabel.Text =39 Then
Label3.Text = "FIELD"
Label3.TextColor = Colors.Red
else If tempLabel.Text =40 Then
Label3.Text = "FIELD"
Label3.TextColor = Colors.Green
else If tempLabel.Text = <Missing value here> Then
Label3.Text = "FIELD"
Label3.TextColor = Colors.Blue
End If
Dim Buffer() As Byte
Buffer = "Arun".GetBytes("UTF8")
TcpStreams.Write(Buffer)
End Sub

Plus we're not actually sure what you're attempting to do and what the problem is... At a guess it doesn't compile
 
Upvote 0
Top