prititit
(prititit)
1
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
Srini84
(Srinivas Kadamati)
2
@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
prititit
(prititit)
3
Hello @Srini84
How do I put it in the matches activity?
prititit
(prititit)
5
What should be the variable type that ill put in here?
prititit
(prititit)
7
Another question @Srini84
Does it affect if my get text has actually a lot of spaces before getting the word “Display Number”
Srini84
(Srinivas Kadamati)
8
@prititit
No issues, It will search only Numbers and get those
Thanks
system
(system)
Closed
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.