B4X:
Dim tmp As String
Select Text
Case Text.Contains("TOOL1")
tmp= sf.InString (Text, ".")
lbltool3.Color =Colors.Yellow
lbltool3.TextColor= Colors.Black
lbltool3.TextSize= 35
tool3=Text.SubString2(tmp-1,tmp+4)
lbltool3.Text= tool3
Case Text.Contains("TOOL2")
tmp= sf.InString (Text, ".")
lbltool4.Color =Colors.Yellow
lbltool4.TextColor= Colors.Black
lbltool4.TextSize= 35
tool4=Text.SubString2(tmp-1,tmp+4)
lbltool4.Text= tool4
Case Text.Contains("OP1")
Log(pps1)
ppstool3.Text= pps1
Case Text.Contains("OP2")
ppstool4.Text= pps2
End Select
Last edited: