Converting the number in the selector to Int data type

1

I need the number 105 in the picture on a website where I will be making transactions. I will use this number later in the While loop. I can get the selector, but how can I get only the number 105?

If you are getting from a website you can use the “Get text Activity” Or Get Attribute Activity after that you can perform the string manipulation or by using regex it possible

@tolgademir

OutputText = after getting the text from website out out

System.Text.RegularExpressions.Regex.Match(OutPutText,“\d+$”).Value

@tolgademir

Hi
Use a get attribute activity and get the output value of attribute that holds that value as a string variable named Strinput

Now use a split method to get the value u want like this in assign activity

stroutput = Split(Strinput.ToString, “-“)(1).ToString

Hope this helps

Cheers @tolgademir

PDFFileDownload: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled. I get this error

1 Like

Typo remove c

stroutput = Split(Strinput.ToString, “-“)(1).ToString

Cheers @tolgademir

resim_2023-09-25_224643063

I am trying again with the same error.

I solved this problem with the String operations topic on the erkanceylan.com website. Thanks again for the useful content. @erkanceylan

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.