Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to script this
#15
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Jenny,
Can't this can be done by If -- ElseIf:

In datatable add a column by name CheckBoxName and enter the name of checkbox you want to tag.
e.g.: party A, party B.....so on.
Code:
If DataTable("CheckBoxName", dtGlobalSheet) = "party A" Then
   ChkName = "dcmtptyFlag"
ElseIf DataTable("CheckBoxName", dtGlobalSheet) = "party B" Then
   ChkName = "dcmtptyFlag$0"
ElseIf DataTable("CheckBoxName", dtGlobalSheet) = "party C" Then
   ChkName = "dcmtptyFlag$1"
End If

Browser("JUSTICEMAX_2").Page("JUSTICEMAX").WebCheckBox("dcmtptyFlag").SetTOProperty "name", ChkName
Browser("JUSTICEMAX_2").Page("JUSTICEMAX").WebCheckBox("dcmtptyFlag").Set "ON"
Reply


Messages In This Thread
how to script this - by Jenny - 10-19-2010, 05:44 AM
RE: how to script this - by Jenny - 10-19-2010, 09:31 AM
RE: how to script this - by KavitaPriyaCR - 10-19-2010, 11:27 AM
RE: how to script this - by Jenny - 10-20-2010, 03:26 AM
RE: how to script this - by KavitaPriyaCR - 10-20-2010, 10:12 AM
RE: how to script this - by Jenny - 10-21-2010, 05:12 AM
RE: how to script this - by KavitaPriyaCR - 10-21-2010, 10:48 AM
RE: how to script this - by Jenny - 10-21-2010, 10:58 AM
RE: how to script this - by KavitaPriyaCR - 10-21-2010, 11:19 AM
RE: how to script this - by Jenny - 10-21-2010, 11:24 AM
RE: how to script this - by Jenny - 10-22-2010, 03:18 AM
RE: how to script this - by KavitaPriyaCR - 10-22-2010, 10:30 AM
RE: how to script this - by sreekanth chilam - 10-22-2010, 11:48 PM
RE: how to script this - by Jenny - 10-26-2010, 03:18 AM
RE: how to script this - by manishbhalshankar - 12-14-2010, 12:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)