Skip to Content
0
Former Member
May 02, 2013 at 11:41 AM

Table Control - How do I get in the first Column if I do not konw it's name?

63 Views

Hello there,

I have a problem with a table control.

My users are using a table to input different data.

Everyone of them sorted the Columns a different way using Variants.

This way I do not know the name of the first Column.

When they hit enter, the Cursor should jump to the next row and into the first colum.

Getting the Cursor into the next row is easy, but since I do not know the name of the first Column, I have a problem.

Is there any way to get the name of the first Column or is there a way to work with numbers instead of names when setting the Cursor Positon regarding the Column?

What I use to get and set the current Cursor position:

(Global definition)

DATA: field TYPE c LENGTH 16,
line TYPE i.

(In PAI )

GET CURSOR FIELD field LINE line.

(In PBO)

line = line + 1.

SET CURSOR FIELD field LINE line.

I hope you can help me, thank you.