Cancel
Showing results for 
Search instead for 
Did you mean: 

Get row number

Pioneer
Pioneer

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

 

2 REPLIES

Re: Get row number

Siemens Phenom Siemens Phenom
Siemens Phenom

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

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Get row number

Pioneer
Pioneer

Thank you!