Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Urgent help on declaring a variable
#1
Solved: 11 Years, 4 Months ago
Hi All,

Here is my code on a simple calculator application.
I am using QTP 9.2.

Option Explicit
Code:
SystemUtil.Run "calc.exe"
Dim click1,click2, click3, click4,result
click1= inputbox("Enter 1st number")
click2= inputbox("Enter 2nd number")
click3= inputbox("Enter 3rd number")
click4= inputbox("Enter 4 th number")
Window("Calculator Plus").WinButton(Cstr(click1)).Click

Quen: cant I pass the variable click1 directly to the statement with out giving Cstr? Window("Calculator Plus").WinButton(click1).Click

But the problem is even I give Cstr, QTP shows an error at this statemnt- object "4" is not found ....

Could any body help me ASAP please

Thanks
Swetha
Reply


Messages In This Thread
Urgent help on declaring a variable - by swetha.b - 12-07-2009, 04:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation URGENT: ActiveX component can't create object citibank_ani 3 15,543 09-09-2014, 01:02 PM
Last Post: VarunKaushik
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,279 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  Urgent plz:Dropdown value is not dynamically loadng the subsequent fields accordingly Shwethareddy 0 1,973 12-04-2012, 03:30 PM
Last Post: Shwethareddy
  Urgent-QTP compatibilty with Eclipse sshukla12 0 2,459 09-16-2011, 11:52 AM
Last Post: sshukla12
Shy array or variable need help urgent raydgeek 1 2,312 03-23-2011, 05:59 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)