Probably because your variables (a and b) are strings instead of integers and the output is merely concatenating the two strings. You will need to cast them as integers prior to adding them.
MWF On Thu, Dec 1, 2011 at 11:19 PM, Raju Prasad <[email protected]> wrote: > Hi > testers > below is the script is ok > a=100 > b=200 > c=a+b > msgbox c > > but if i use *inputbox* method > a=inputbox("enter a value") > b=inputbox("enter b value") > c=a+b > msgbox c > > output is *100200 * > > > > -- > yours > reddy prasad > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
