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

Is it mandatory to know abt regular expression in descriptive programming

2 Answers  


Write the vb script for the lowest and highest values of an array?

1 Answers   Manhattan,


Can U Explain about QTP tool from older version to latest version also its differences?

0 Answers  


what is object repository?

4 Answers  


tell me abt a time when u had to go above &beyind the call of duty to get the job done

0 Answers  


How to test background color and dynamic images which are moving during runtime?

7 Answers   CTS,


What is our exact stage involvement with QTP?

1 Answers  


How can we automate Capthca on registration or any contest forms ? Is it possile to Automate Webpages with Falsh using QTP..?

1 Answers  


What is the maximum size of Object Repository in QTP 8.2?

4 Answers   Mphasis,


what is run-time object in qtp? explain with example?

2 Answers  


Where to use function or action?

0 Answers  


In QTP what is the difference between Step-in, Step-out, Step-over ?

3 Answers   CTS,


Categories