Application Development and Automation 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: 
Read only

cursor position in table control

Former Member
0 Likes
508

I want to get the cursor position in table control, can any one tell me how to get the cursor position .

Using that i have to hold the cursor.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
466

You need to get the cursor line by using the command:

GET CURSOR FIELD <field name> LINE <line>.

This gives you the line in the table control where the cursor is but you also need to consider if the user has scrolled the table control entries. The code below will give you the true cursor line for your table control.

GET CURSOR LINE <line>.

cursor_line = <table_control>-top_line + <line> - 1.

Read only

0 Likes
466

in CT04 transaction if we enter the number of characters the cursor is moving upto that character length only.

How to do that using cursor statement.

Thanks in advance.