Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IF Then else statement
#9
Solved: 11 Years, 4 Months, 4 Weeks ago
Code:
var= Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProoerty("Selection")
Select Case "var"
Case ""
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtE").Set "swetha.b@osmosys.asia"
else if (var=Phone)
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set Set "(987)789-4563"
else if (var=FAX)
Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtF").Set Set "(987)789-4563"[hr]
Please ignore y previous mail .. by mistake i clicked on the post repy...
u can also switch statement tocover the above scenario :
Code:
var= Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebList("ctl00$ContentPlaceHolder1$ddlP").GetROProoerty("Selection")
Select Case var
Case "Email"
    Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtE").Set "swetha.b@osmosys.asia"
  case "Phone"
        Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtM").Set  Set "(987)789-4563"
  case "FAX"
            Browser("TalonPro Solutions").Page("TalonPro Solutions_4").WebEdit("ctl00$ContentPlaceHolder1$txtF").Set " Set "(987)789-4563"
End Select
Reply


Messages In This Thread
IF Then else statement - by swetha.b - 12-03-2009, 06:01 PM
RE: IF Then else statement - by Jyobtech - 12-03-2009, 06:25 PM
RE: IF Then else statement - by swetha.b - 12-03-2009, 07:58 PM
RE: IF Then else statement - by swetha.b - 12-04-2009, 11:17 AM
RE: IF Then else statement - by swetha.b - 12-04-2009, 12:47 PM
RE: IF Then else statement - by nil - 12-04-2009, 02:59 PM
RE: IF Then else statement - by Jyobtech - 12-04-2009, 03:32 PM
RE: IF Then else statement - by nil - 12-04-2009, 03:37 PM
RE: IF Then else statement - by MahalakshmiDevi - 12-04-2009, 04:09 PM
RE: IF Then else statement - by nil - 12-04-2009, 04:17 PM
RE: IF Then else statement - by swetha.b - 12-04-2009, 04:27 PM
RE: IF Then else statement - by nil - 12-04-2009, 04:32 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)