Urishev Member Licensed User Longtime User Jun 24, 2018 #1 How to select numbers from a string Str = "1,2,3" to get a=1 b=2 c=3 Dim a, b, c As Int
Urishev Member Licensed User Longtime User Jun 24, 2018 #3 Good day! Thanks for the quick response. Please tell me how to use Regex in this case. Upvote 0
DonManfred Expert Licensed User Longtime User Jun 24, 2018 #4 What let you asume the Forumsearch isn´t working? I´m sure you´ll find the right answer to use regex. Upvote 0
What let you asume the Forumsearch isn´t working? I´m sure you´ll find the right answer to use regex.
M Mahares Expert Licensed User Longtime User Jun 24, 2018 #5 Urishev said: Please tell me how to use Regex in this case. Click to expand... Give @DonManfred a break. He is probably still celebrating Germany's World Cup 2018 victory from last night. Here it is Code: Copy Dim Str As String= "1,2,3" Dim strArray() As String=Regex.Split(",",Str) Dim a As Int= strArray(0) :Log(a) 'displays 1 Dim b As Int= strArray(1) :Log(b) 'displays 2 Dim c As Int= strArray(2) :Log(c) 'displays 3 Upvote 0
Urishev said: Please tell me how to use Regex in this case. Click to expand... Give @DonManfred a break. He is probably still celebrating Germany's World Cup 2018 victory from last night. Here it is Code: Copy Dim Str As String= "1,2,3" Dim strArray() As String=Regex.Split(",",Str) Dim a As Int= strArray(0) :Log(a) 'displays 1 Dim b As Int= strArray(1) :Log(b) 'displays 2 Dim c As Int= strArray(2) :Log(c) 'displays 3
Urishev Member Licensed User Longtime User Jun 24, 2018 #6 It worked! Thank you, @DonManfred congratulations! Upvote 0
mangojack Expert Licensed User Longtime User Jun 24, 2018 #7 Urishev said: It worked! Thank you, @DonManfred congratulations! Click to expand... What worked ? .. the Forum search .. Finally. maybe a like for @Mahares and the German team would not go astray .. Upvote 0
Urishev said: It worked! Thank you, @DonManfred congratulations! Click to expand... What worked ? .. the Forum search .. Finally. maybe a like for @Mahares and the German team would not go astray ..
Urishev Member Licensed User Longtime User Jun 24, 2018 #8 All worked. The help of @Mahares and a good mood of @DonManfred. Ole-Ole-Ole! I'm glad it worked out Last edited: Jun 24, 2018 Upvote 0