Hi, im trying to test a visual basic application and i have run into a vsflexgrid. There are 4 columns to each row: city, zipcode, county, territory. I need to select a row based on the values of each column. (I.E. Select the row whose city is "Chicago" Zipcode is "61761" county is "county1" territory is "4")
I know i can loop through the table until i find the row i want. I just dont know how to get the data out of this grid. Is there a get row, get column function?
I also used the object spy tool, and here are some of the properties of the grid. When i try to click Native Properties, i got the message "Winobjects do not support run time object properties"
Class_Name = WinObject
As for add-ins for QTP the only one i have is visual basic, any others cause my system to crash(No idea why, i was told to not use them)
Any help would be greatly appreciated, I have spent a while trying to figure this out.
U need to have the ActiveX Addin enabled if you are using the VSFlexgrids,.
Once you enable this Add-in u can use .object.TextMatrix(row,col) to get the data out of the grid
I cant get the activeX addin to work, Everytime i run QTP with the activex addin loaded, it throws an error
"The instruction at "0x00cb2bf6" referenced memory at "0x5ec68b6b". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
Do you know how to fix this?