How to convert a part of string into variable


#1

So I have scraped a text “Character (Number)” as a string.

I split the string to get the number, but I need to minus 1 from the number before I can do String(Number)

I cannot minus 1 unless I can find a way to convert the Number to an integer.

I have tried to change the variable types on the variables panel but without luck.

Appreciate if anyone can help.


#2

@willboy88 After extracting number from ur scrapped text. Convert it to integer like below.

Int a=Convert.ToInt32(Number)