Forum Discussion
getting an error : aqString object not found
for(i=0;i<= Grid.wRowCount-1;i++)
var i=Grid.aqString.Find("Created Date","FormatStr")
Log.Message("Value of dt string --> " + "Created Date")
Grid.wValue(i, "Created Date");
Log.Message("Value of dt string --> " + "Created Date")
aqString is not a child object of grid.
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/find.html
- tristaanogre7 years agoEsteemed Contributor
Generally,in pseudoe code:
for all rows in the grid { var dateString = attributeMaintenanceGrid.wValue(rowIndex, 'Created Date'); if (aqString.Find(dateString, FormatStr, 0, false) != -1) { var foundRow = rowIndex; break; } }
Basically, you're doing the loop through the grid, finding the row yourself. Find does a "contains"... so, it will return a value >= 0 if it contains your date, otherwise it will continue the loop. It exits the loop and the row you want is stored in the "foundRow" variable.
Note, the above code is NOT tested, NOT runnable, NOT accurate code... it's presented only to give example of how to do it. It's up to the reader to make the proper edits and application for production use.
- msap7 years agoFrequent Contributor
how do you define rowIndex here?
Is it find row method, if I use Find row : value 6/14/2018 was not found in the created date column is seen
- tristaanogre7 years agoEsteemed Contributor
How did you implement it? What's your code? As I mentioned in my post, what I posted was JUST to give the concept. I can't debug your code if I don't know what you wrote.
Related Content
- 9 years ago
- 4 years ago
Recent Discussions
- 12 hours ago
- 2 days ago