• Subject: Re: Getting the subfile recnumber
  • From: Jerry Keppler <kepplerj@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 11 May 1998 14:20:21 -0500
  • Organization: Pattonville School District

John Bussert wrote:
> 
> I am trying to get the subfile line that the cursor was on then the user
> pressed enter (without changing anything on the line - so READC will not
> pick it up.)  I have used this technique on flat screens using the ROW COL
> in the display file Information data sturcture.  But it seems to pass back
> junk on a subfile.  Thanks,
> 

Use the SFLCSRRRN keyword.  You'll find it on the General Keywords for
the subfile control Record in SDA.  All you have to do is define a
signed numeric hidden field in the subfile control record with a length
of 5 and 0 decimal positions.  The field will contain the relative
record number of the subfile record where the cursor was when the user
pressed enter or any function key.

One word of warning.  If the cursor was not in the subfile, located
between records, or on an inactive record the field will contain 0.


-- 
___________________________________________________________
Jerry R. Keppler      Pattonville School District
Computer Programmer   11097 St. Charles Rock Road
(314) 213-8045 Voice  St. Ann, MO 63074-1509
(314) 213-8650 Fax    mailto:kepplerj@pattonville.k12.mo.us
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].