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 to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"
10 Answers Aspire, MNC, Omega,
Explain the QTP Tool interface.
Is it possible to change the values of analog recording?
What is diff. between ordinal identifier INDEX and Location?
how to invoke the web application through script in qtp
how to test background color and dynamic images during runtime
Pls Solve Error(SAP-CRM):- Cannot identify the specified item of the SAPNavigationBar object.Canfirm that the specified item is included in the object's item collection.
How can we fill data in a text box without recording using object spy. Can you please provide the steps...
What is the Dynamic Scenario in QTP? And also anybody give the example for this?
What exactly a frame Work means?what are the different type of frameworks done in QTP?why the caption for QTP given as advanced keyword driven?
In a QTP project lets say there are 100+ function library and incorrectly we have duplicate some function in multiple libraries. How to find those duplicate functions and remove them?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.