Highlighted
Absent Member.
Absent Member.
587 views

[archive] Grid-Control, current line-number..

[Migrated content. Thread originally posted on 11 June 2008]

Hello,

How to get the current line from a grid-control after modify statement?
I've used inquire statement directely after modify statement to get the current line number in Y but I don't get it.

Any tips!!

Regards
0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid-Control, current line-number..

What are you trying to do?

You will find that event-data-1 & event-data-2 may well contain the X & Y co-ordinates of the cell you are in in the first place.
i.e GOTO-CELL-MOUSE
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid-Control, current line-number..

I don't mean inquiring the grid when it's filled with data, I mean when I'm still in a process of reading from a file and adding records to the grid, I need to know which record line is it?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid-Control, current line-number..

OK then.
We do this when adding populating a grid with records.


   MODIFY Order-Lines-Gd, RECORD-TO-ADD S-ORL-RECORD
   INQUIRE Order-Lines-Gd, LAST-ROW = WS-LAST-ROW
   MODIFY Order-Lines-Gd, X = 1, Y = WS-LAST-ROW
                                             HIDDEN-DATA = ORL-KEY
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Grid-Control, current line-number..

That's exactly what I meant.
Thanks for taking the time to respond.

Regards
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.