mcmprashanth
11 years agoOccasional Contributor
run time error, 'object variable not set'
Hi,
Can anyone help where my script is going wrong pls. The error is thrown at 'If nRow = ("Local") Then' script line. thanks in advance.
Sub selectrow
Dim nRow
Dim tblCell
Dim pnlObj
Dim tblObj
Set pnlObj = Sys.Browser().Page().Form().Panel()
Set tblObj = pnlObj.Object(dir).SlObject("gridfrmobj").SlObjec("Grid").SlObject("dataPresenter")
For i = 0 to tblObj.ChildCount - 1
Set tblCell = tblObj.SlObject("TextEdit", "", i)
Set nRow = tblCell.EditValue
If nRow = ("Local") Then
Log.Message("FOUND")
tblCell.ClickR
'ElseIf ...
.........
Exit For
End If
Next
End Sub