Get Text - Convert to Int32

Hello Guys -

I have here a string from the get text.

The text that the Get text is getting is : “Display Number(12)”

2 Assign Activities
strDisplayNum= strDisplayNum.Replace(“Display Number (”,“”).Trim
strDisplayNum= strDisplayNum.Replace(“)”,“”).Trim

How to make it to Int32 so that when I put it in the excel file it will convert to number


Use Matches activity to get the number


once you done with matches give the output variable

Now for convert to Int32, you can use as below


Hope this helps you


Hello @Srini84

How do I put it in the matches activity?


Check as below

Hope this helps you


What should be the variable type that ill put in here?

Sorry I already get it. :slight_smile:

Thanks @Srini84!

1 Like

Another question @Srini84

Does it affect if my get text has actually a lot of spaces before getting the word “Display Number”


No issues, It will search only Numbers and get those


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