Highlighted
Absent Member.
Absent Member.
1278 views

Visual Cobol: Testing For the Enter Key

Jump to solution

I have a form that contains a testBox that I use to enter data. When I press "tab" or click the mouse on another control,  the data is processed. When I press "enter" nothing happens. How can I have the enter key do what the tab key does? I use an event handler "Leave_Focus" to process the data.

Jerry

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Visual Cobol: Testing For the Enter Key

Jump to solution

Take a look at the previous post that covers this topic at community.microfocus.com/.../8949.aspx

Be aware that if you place a control like a datagrid on the form that this becomes a little more complicated as these controls havdle their own key processing.

Thanks.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Visual Cobol: Testing For the Enter Key

Jump to solution

Take a look at the previous post that covers this topic at community.microfocus.com/.../8949.aspx

Be aware that if you place a control like a datagrid on the form that this becomes a little more complicated as these controls havdle their own key processing.

Thanks.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Visual Cobol: Testing For the Enter Key

Jump to solution

Hi Chris

    That was great. Worked like a champ. Just what I wanted. Thanks Much!

Jerry

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.