ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

What subfile records is the cursor on?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What subfile records is the cursor on?

    I haven't done this in a very long time (probably 10 years) but now I am charged with changing a program so it checks to see what subfile record the cursor is on when the user presses the ENTER key. So, I could use some advice

    I've added the SFLCSRRRN keyword to the subfile control and also added CSRRRN as a parameter of SFLCSRRN and defined it as a hidden field on the subfile control. However, when I do an EXFMT SFLCTL3 in my program debugging verified that CSRRRN contains 0, although the cursor was obviously on a subfile record.

    Click image for larger version

Name:	image.png
Views:	82
Size:	7.5 KB
ID:	159034

    I must be doing something incorrectly.​

  • #2
    That's what happens when the cursor is not on a subfile record. I've never heard of it happening when it is on one.

    Comment


    • #3
      I figured it out, I was doing a WRITE to SFLCTL3 not EXFMT

      Comment

      Working...
      X