Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to covert a String to an integer?

Answers were Sorted based on User's Feedback



How to covert a String to an integer?..

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

How to covert a String to an integer?..

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

How to covert a String to an integer?..

Answer / varun bisaria

CInt()---> a conversion function available.

Is This Answer Correct ?    0 Yes 0 No

How to covert a String to an integer?..

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

How to covert a String to an integer?..

Answer / raja83

you can use cint function

cint(10) will convert integer 1

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More QTP Interview Questions

What is QTP testing process?

0 Answers  


How to Identify broken links in QTP

2 Answers   Ness Technologies,


I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?

0 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

2 Answers  


can we enable smart identification for test object

3 Answers  


How does quicktest professional identifies the object in the application?

0 Answers  


what all are the coverages , explain ?

2 Answers  


How to write business scripts using object repository with different scenarios

0 Answers  


CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?

3 Answers   Polaris,


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?

0 Answers  


Whenever we use GETROPROPERTY function.

7 Answers   NIIT,


Categories