11-26-2014 05:07 AM
Hi Guys,
simple question: I have different weeknumbers in a tablefile. A method then searches the weeknumber. Subsequently, I want to get the rownumber where the weeknumber is found. I know there is the method getRowNo, however I don't get it completely. Here's the code
Weeknumber(integer) := week(EventController.absSimTime);
WeekFound(boolean) := TableFile.find(Weeknumber);
TableFile.getRowNo(???Weeknumber???)
Regards,
William
11-26-2014 05:22 AM
Hi WilliamK,
the find method of the table sets the cursor to the found cell. You can then use the table attributes CursorX and CursorY to get the location of this cell.
The getRowNo method works without find. If you have a table index of type index you can use getRowNo with the week as an argument to find the row.
Regards,
Ralf
11-26-2014 07:55 AM
Thank you!