|
Ken, Thanks for the insight about the F-Key not returning control to the program when used for changing subfile modes. Your code worked like a charm! William ----- Original Message ----- > From: "Sims, Ken" <KSIMS@SOUTHERNWINE.com> > To: midrange-l@midrange.com > Subject: RE: Changing roll value based on SFLFOLD/SFLDROP > Date: Fri, 31 Aug 2001 14:40:54 -0400 > Reply-To: midrange-l@midrange.com > > Hi William - > > >I've attempted to use the SFLMODE keyword on the subfile > >control to determine if I'm in "fold" or "drop" mode with > >success, but when I try to set the SFLROLVAL keyword (I also > >have it hidden and protected), I get nowhere. The affect > >of resetting the SFLROLVAL is "one screen too late", almost > >as if the read doesn't occur after I press me F-key to > >change the mode. > > The problem is that when the F-key is pressed to change modes, control is > not returned to the program (unless the subfile is empty, in which case > there really isn't anything for the program to do). > > What you need to do is to assign the F-key that the users use to fold/unfold > as a CF key. Assign some other unused F-key as the SFLDROP/SFLFOLD F-key. > You don't want the users to ever actually press that key. > > When a user presses the F-key that is now just a regular CF key, your > program will get control. It can change the SFLROLVAL value. It also will > need to turn a indicator on or off to toggle the mode of the subfile > manually. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.