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

@prititit

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

Cint32(MatchesVariable(0).ToString)

Hope this helps you

Thanks

Hello @Srini84

How do I put it in the matches activity?

@prititit

Check as below

Hope this helps you

Thanks

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”

@prititit

No issues, It will search only Numbers and get those

Thanks

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