Similar Posts

3 Comments

  1. Excellent post!!! QTP has been a leading automation tool. Thanks admin for sharing this useful information with us. Keep on updating.

    1. Hi Manjit, we are passing two input string values 4 and 5 so the output is 4+5 (4 concatenate 5) = 45. If you convert the input value to integer (cint) then it will be 9 (cint(4)+cint(5).
      Here is the sample,
      option explicit
      dim a, b, res
      a = inputbox(“Enter the value”)
      b = inputbox (“Enter the value”)
      res=cint(a)+cint(b)
      msgbox res

Leave a Reply

Your email address will not be published.