the application throws an Unexpected Error dialogue box and execution is stuck until i press ok on the box , i tried to use recovery scenario , and even place the code to click on Ok but the script get stuck on the step written above , application displayes a message box and doesnt proceed to the next step.
this doesnt happen if i change Object.Select 0,0 to Object.Select 1,1 application doesn't throw any error
i guess the possible reason for this could be that 0 row contains buttons while 1 row onwards flexgrid has text (editboxes ..i guess)
this error dialogue is not displayed when i click on the buttons manually
Please help if there is some work around for ActiveX(":-) VideoSoft FlexGrid").Object.Select 0,0
Well the error might be because of the reason that 0,0 is not a valid input and in any case if the application gives you an error then it won't do the action also that you wanted it to. So handling the dialog would not help, or would it?
0,0 exists ;
Error is because i am selecting a button using the Object.select method , which works fine for other cells infact it gives "Unepected error" message just once , once you click it it continues for 0,1 onwards without error
what i wanted to achieve was the column head names as the column headnames change depending on the kind of record i wanted to fetch
so my logic was to run a loop for 0 to numberofColumns and select the objects one by one match the column heads with the text i want and then search for values in that column
colName= VbWindow("frmMDI").VbWindow("frmTradeBrowser_2").A ctiveX("ResultGrid.ResultGridCtrl").ActiveX(":-) VideoSoft FlexGrid").object.TextArray(0)