Forum Discussion

avenedam's avatar
avenedam
Occasional Contributor
15 years ago

MS Flex Grid in VB 6

Hello All!



I'm currently writing a test script to automate the testing of my vb 6 windows application.  Within the application I have an MS Flex grid.  I have a specific cell that I wish to click on to fire another event. 



I can't seem to locate the proper syntax to click on this cell.  I have the row index and I have the column index of the cell.



I've seen examples where coordinates are used to click, however, this won't work for me, as I will be testing on different resolutions and this particular row moves depending on the order of a query.



Any help would be greatly appreciated.



Thanks

A.

3 Replies

  • Hi Audrey,



    Since you are working with a Visual Basic application, TestComplete works with it as with an Open application. This means that the tool has access to native methods and properties of the application's objects. So, you can work with your grid control using these methods and properties to retrieve values from the grid or validate its data. You can find a sample demonstrating how to do this in the Retrieving Data From Microsoft FlexGrid. Example help topic.
  • avenedam's avatar
    avenedam
    Occasional Contributor
    Thanks for the speedy reply!



    However, I don't think that article really helps me.  It's great for grabbing the data and doing something with it, but what I am trying to do is code testcomplete to click on a particular cell within the flex grid.



    I've been able to iterate through the cell, read all of it's properties, but calling a method to click on a particular cell and/or row is eluding me.



    Thanks

    Audrey