fxg4758 Posted February 26, 2007 Posted February 26, 2007 Hello people. I have a datagrid in a program (VB) that have tree columns and various rows. I need to find a string in the first column and if isn´t find then go to the next row. I already try the ControlGetText or WinGetText, but i don´t have any luck. Thanks for any help.
pjotterke Posted February 26, 2007 Posted February 26, 2007 use if state ment... If WinActive ("window title", "window text" ) Then exit Else go to....
fxg4758 Posted February 27, 2007 Author Posted February 27, 2007 Hello pjotterke. Thanks for your reply. The control is "DataGridWndClass" and when I use your solution, i cannot select the right line. For example, i have various lines starting "Sport", but i don´t know how to select only "Sport Car". Can you give me some of code for the right selection and to move in the next row. Sorry for the question, but I only start at a month ago in this program. :">
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now