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 |
Hi all, In Every interview interview asking one question what type of challenges you have been faced in your project?
i want to handle all the unwanted pop up through QTP i done that with recovery scenario but it need some title of pop up but i want that it should handle all the pop up even i don't give the title of that pop up in recovery scenario is there any general way to handle all the pop up please help
What is Curd testing?
Explain qtp(quick test professional)?
How to use the object spy in quicktest professional (qtp) 8.0 version?
How to handle the exceptions using recovery secnario manager in Qtp?
How to capture the Check point Value into a variable?
What are the enhancements u did after recording ur script?
When a requirement is given to u to automate , What is ur basic approach ?
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
what is verification & validation?
what is use of optionexplicit in variable declaration