× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am not completely sure I follow what is happening, but here is my shot at it:

When the Home key is pressed the if/else loop does nothing.

This makes me think that commenting
line 56. HomeKey = Save_homeKey;
and
line 58. Save_HomeKey = HomeKey;

might make a difference. My guess is that it will either fix it or show you the problem from another angle, and lead you safely home.


On 8/2/2012 2:25 PM, Michael Schutte wrote:
I've spent entirely too much time on this. Could someone please help me
out on this. I've never bothered handling the home key. Here's the issue.


When I press Home, it is disabling the field in the control record. So
it's always going back to the first subfile record.

What I want to do is.. .when the program first loads, I want the cursor to
be positioned to the first subfile record. This is working just fine,
display file has...


Then when the user presses home, I want the first field in the subfile
control to have focus. But when I press home, the fields in the control
record get disabled even though I have no protect indicators specified.
Home Key has a response indicator of 27. First field in control record
has a position cursor of 27 on it.

I've copied an existing program that is working as I want. Where the only
difference I see is that I am using the INDARA and INDDS in the program.


I've also never done a folded subfile before either. Something strange is
happening here too. If I press Home which locks the Control record fields,
I can press F11 to expanded the subfile records and it enables the control
records. I also have two constants in the control record that is
highlighted, they lose highlighting when I press F11.

I've put code here... http://code.midrange.com/c1b28b9e6f.html



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.