its a web based application. reports are displayed in html table. num of records in a report changes from run to run.i have to check number of records retrieved(will be displayed in one cell)=number of records actually displayed.number of columns selected before generating the report same as ones displayed in the report.i have used some string functions to get the values from the cells(Total Records: 14),extract the required information(the number) convert that text to number.& then comparing. to extract also the number may be 1 or 2 or 3 digit from run to run. columns i have put selected columns in one array & after report is generated get the columns & put in another array,then compare 2 arrays. it includes lot of string manipulation,just i wanted to know is any other way is their.