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 |
How will you find the current time of the remote machine using QTP script?
what is the mail use of frame work(with detail). architecture for keyword driven frame work
Shall we add Local Repository to shared object repository,if yes,how we add
How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file is like: <Environment> <Variable> <Name>Name</Name> <Value>Uday Kumar</Value> </Variable> <Variable> <Name>Designation</Name> <Value>Senior Software Engineer</Value> </Variable> </Environment> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?
I want some banking domain projects where can i get this projects ( anybody can help me plz)
What is the latest version in QTP?
55 Answers Bharti, Polaris, US Technology,
what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
How to open a new test using quicktest professional (qtp)?
Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.
How many ways we can parameterize data in quicktest professional (qtp)?
Hi guys i'm prepareing for interview question for qtp i don't have bayground for vb scipt language can any one tell me it is easy to do job in qtp without bayground.