Micro Focus QTP (UFT) Forums

Full Version: Searching for and selecting row in Datawindow
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In my datawindow, I have a column named Code. I’m attempting to locate the cell in that Code column that says GEBRTS, then have the script activate that cell for me. Forgive my newness, trying to give what info I can.

my first attempt:

Code:
For row = 1 to PbWindow("lems"). PbWindow("elect").PbDataWindow("select").RowCount
If PbWindow("lems"). PbWindow("elect").PbDataWindow("select").GetCellData (row,col) = "GEBERTS" Then
Exit For
End If
Next


It runs and local variables show:

Name Value Type Name
Row 23 Long
Col Empty User-defined Type

Any thoughts or ideas for me?
Thanks!