Android Question Regex.Split

Robert_Poland

Member
Licensed User
Hello :)

How to do it I have such code (works)
B4X:
Sub SI_MessageReceived (From As String, Body As String) As Boolean

Dim msg As String

Dim msg As String
msg = Body.ToLowerCase


Dim s(4) As String

's = Regex.Split("\,",msg)
s = Regex.Split("\*",msg)
If s.length>1 Then
   

num.text=s(0)    
num.TextSize= 30


clip.Text=s(1)
clip.Textsize =50


report.Text=s(2)


   
End If







Return True

End Sub


If eg in num.text = s (0) You will see number 5 it is supposed to show picture _1 and if number 6 is picture_2 and so on how to make ?

thx
 

DonManfred

Expert
Licensed User
Longtime User
Based on the spare info i´m not able to understand the question or even the code
 
Upvote 0

Robert_Poland

Member
Licensed User
I will make up How to do if in The content of the array s (0) will be, for example, 5 (Num.text = s (0) value 5) Then he has, for example, to show the picture
 
Upvote 0
Top