Skip to Content
author's profile photo Former Member
Former Member

cursor position in table control

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 10:11 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.