10-04-2010, 04:30 PM
SUPPOSE
int rowCounts=es.NumRows
for iRow 1 rowCounts
es.GetCell(searchJobId 1 iRow)
if CellCheck(searchJobId)
Htm el_setJobId=htm("INPUT" "txtJobNumber" "" win("Vendor Solution - Windows Internet Explorer" "IEFrame") "2" 3 0x221)
el_setJobId.SetText(searchJobId)
out "JobId set focus"
My next step is to click submit button
Htm CmdFind=htm("INPUT" "btnFind" "" win("Vendor Solution - Windows Internet Explorer" "IEFrame") "2" 8 0x121)
CmdFind.Click
and When Invalid data is enter then Button not work. Macro cannot go forward next step and generate error "object not found"
How I can solve this problem.
........
I want to say, If searchJobId is Invalid. Then macro is running continue and go to for loop
Problem is when data is Invalid macro "object not found"
int rowCounts=es.NumRows
for iRow 1 rowCounts
es.GetCell(searchJobId 1 iRow)
if CellCheck(searchJobId)
Htm el_setJobId=htm("INPUT" "txtJobNumber" "" win("Vendor Solution - Windows Internet Explorer" "IEFrame") "2" 3 0x221)
el_setJobId.SetText(searchJobId)
out "JobId set focus"
My next step is to click submit button
Htm CmdFind=htm("INPUT" "btnFind" "" win("Vendor Solution - Windows Internet Explorer" "IEFrame") "2" 8 0x121)
CmdFind.Click
and When Invalid data is enter then Button not work. Macro cannot go forward next step and generate error "object not found"
How I can solve this problem.
........
I want to say, If searchJobId is Invalid. Then macro is running continue and go to for loop
Problem is when data is Invalid macro "object not found"