@walterf25,
ReceivedString (0) to „VAL.33”
This is a mistake. Regex doesn't index from zero, it indexes from 1
@Pepebis
put the code in the appropriate tags
Send it all in one go. All you have to do is form it properly. Create the right values between the separators. The separator can be any character (almost any) in this example is "*".
Dim str As String = "*31.1*32.2*33.3*34.4*"
Dim str1,str2,str3,str4 As String
Dim numbers() As String
numbers = Regex.Split("\*", str)
str1=numbers(1)
str2=numbers(2)
str3=numbers(3)
str4=numbers(4)
If you don't want to change the settings every second, send an empty character or prefix. Now you can get the desired action using conditional statements or select case etc.