# How can plug-in access cursor position in edited program?

**URL:** <https://techcommunity.softwareag.com/t/how-can-plug-in-access-cursor-position-in-edited-program/91405>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [September 28, 2009, 5:42pm UTC](https://techcommunity.softwareag.com/t/how-can-plug-in-access-cursor-position-in-edited-program/91405 "2009-09-28T17:42:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Rose](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Anthony\_Rose](https://techcommunity.softwareag.com/u/Anthony_Rose)\
**Post date:** [September 28, 2009, 5:42pm UTC](https://techcommunity.softwareag.com/t/how-can-plug-in-access-cursor-position-in-edited-program/91405/1 "2009-09-28T17:42:32Z")

</div>

I’d like a plug-in to edit the program editor’s active window at the current cursor position, but I cannot find the line number.

USR6004N provides the line number but looks to its own studio interface and therefore finds no active program when called by the plug-in.

But if I access the ActiveObject of the studio interface passed to the plug-in, how can I find out what line number the cursor is currently on?

---

<div class="post-metadata">

**Author:** ![Anthony\_Rose](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Anthony\_Rose](https://techcommunity.softwareag.com/u/Anthony_Rose)\
**Post date:** [November 25, 2009, 8:07pm UTC](https://techcommunity.softwareag.com/t/how-can-plug-in-access-cursor-position-in-edited-program/91405/2 "2009-11-25T20:07:31Z")

</div>

FYI  
I raised this query in support and the reply was it can’t be done yet.  
There is a possibility of this capability being added in future.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/how-can-plug-in-access-cursor-position-in-edited-program/91405/3 "2021-04-02T14:57:34Z")

</div>


