How to covert a String to an integer?
Answers were Sorted based on User's Feedback
Answer / venkateshwarlu
using cint function
dim var1, var2
var1=10.89
var2=cint(var1)
msgbox var2
will give integer value : 10
| Is This Answer Correct ? | 11 Yes | 5 No |
Answer / vulani
Here's the shortest way to do it Gents:
string mystr ("1204");
int myint;
stringstream(mystr) >> myint;
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / varun bisaria
CInt()---> a conversion function available.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bfakruddin
dim str,num
str="Hello"
num=100
cstr=cint(str) ' It converts string into integer
msgbox cstr
cint=cstr(num) ' It converts Integer into string
msgbox cint
| Is This Answer Correct ? | 8 Yes | 14 No |
Answer / raja83
you can use cint function
cint(10) will convert integer 1
| Is This Answer Correct ? | 4 Yes | 11 No |
What is QTP testing process?
How to Identify broken links in QTP
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
can we enable smart identification for test object
How does quicktest professional identifies the object in the application?
what all are the coverages , explain ?
How to write business scripts using object repository with different scenarios
CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?
I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic
4 Answers Accenture, Acentia, LM,
Define Canvas view of UFT?
Whenever we use GETROPROPERTY function.