jyothi_priya
14 years agoContributor
How to convert a string stored in a variable into an integer
Hi,
I want to convert a string stored in a variable into an integer.
For eg I want to perform follwing operation:
X = object.Text 'X = 5000
Y = X + 1
here X need to be converted to integer. i have tried following options but isn't working for me:
aqConvert.StrToInt(X)
aqConvert.VarToInt(X)
VarToInteger(X)
X1 = BuiltIn.VarToStr(X)
X2 = Utilities.StrToInt(X1)
Can anyone give em a solution for this...
Thanks Priya
I want to convert a string stored in a variable into an integer.
For eg I want to perform follwing operation:
X = object.Text 'X = 5000
Y = X + 1
here X need to be converted to integer. i have tried following options but isn't working for me:
aqConvert.StrToInt(X)
aqConvert.VarToInt(X)
VarToInteger(X)
X1 = BuiltIn.VarToStr(X)
X2 = Utilities.StrToInt(X1)
Can anyone give em a solution for this...
Thanks Priya