Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the line number of a selected row in a table control

Former Member
0 Kudos

Hi all,

If I select a line of a table control , then how can find out the line number of the selected line. I tried it using 'GET CURSOR LINE'. If I select a line, then obviously the cursor will on the same line, first column. So 'GET CURSOR LINE' is working fine for it. If I place the cursor somewhere else and proceed then it is not suitable.

So can you suggest me on this?

Thanks and Regards,

Balakrishna.N

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

GET CURSOR LINE is okay for double-click purpose, If you want to select lines, especially multiple lines, put a select field in your table control, and then use a LOOP AT WHERE <select-field> EQ 'X'.

Regards

0 Kudos

It is not like put a field. I can select the line just as in grid. But what I want to know is the number of the selected line without looping on the table.

Thanks and Regards,

Balakrishna.N