I am new to QARun and I'm trying to see how it works with the application I test. I'm having trouble with it selecting items in a multi-column list view control.
The problem is, the list view has multiple columns, but the "ListViewCtrl" command only seems to care about the first column. How do I get it to select an item based on more then one column of the list view?
The application is written in Delphi5 and I have the TListView control mapped to SysListView32.
The function ListItem() is documented as having 2 parameters (hCtrl,Position). It gives the text of the item in the first column at position 'Position'. Someone at my company discovered that there's an undocumented third parameter, which will allow you to specify the column from which you wish to read the text.
Using this, you can write you own function to search through the list and find the values you are looking for.
Thats quite a useful comment Brian, I will bear that in mind for when I next have the same problem as we have had similar problems in Delphi and have always had to work round it before. Now, I'm hoping that the same idea would work in Powerbuilder as that would save a colleague of mine getting more grey hairs
[This message has been edited by jwood (edited 05-11-2001).]