Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

what function is useful to convert string to number

This is a discussion on what function is useful to convert string to number within the QTP forums, part of the Software Testing category; I got two values from textfields and attempted to add the two numbers (sum). The result isn't sum but concatenated strings. I may have to convert them before sum them. ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-19-2008
Expert Member
 
Join Date: Jun 2008
Posts: 212
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
what function is useful to convert string to number

I got two values from textfields and attempted to add the two numbers (sum). The result isn't sum but concatenated strings. I may have to convert them before sum them.

what function in qtp to use?

msgbox browser(b).page(p).webedit(w1).getroproperty("vaue") + browser(b).page(p).webedit(w2).getroproperty("vaue")
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-20-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
Arrow Re: what function is useful to convert string to number

please assign the values to variables & then sum them

Pseducode
i = ROPROPERTY(Object1)
j = ROPROPERTY(Object2)


MsgBox int(i) + int(j)

Regards,
Nawab
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Fastest algorithm to find the number of bits set in a number? chandan1008 C and C++ 4 08-27-2008 08:31 AM
Difference between String.Convert Vs String.ToString jbanx C# 6 03-24-2008 01:02 PM
How to convert the String to date in Parallel jagadish10 Data Warehousing 0 06-19-2007 05:19 AM
display string without having underscore if we send string with underscore ausprem2000 Oracle 1 05-28-2007 07:46 AM
String handling function in C scott C and C++ 1 07-23-2006 12:22 PM


All times are GMT -4. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved