I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
If you are using ACCEPT/DISPLAY statements in your program you can configure the behavior such as the function keys either by setting options in the ADISCTRL file using the utility adiscf.exe which is found in the Visual COBOL bin folder, or by making calls to the library routine X"AF" using function 1.
If you have a previous ADISCTRL file from your legacy system then you should bring this over to your Visual COBOL project and make sure that it ends up in the executable folder along with your compiled program.
There is a default ADISCTRL file under C:\\Program Files (x86)\\Micro Focus\\Visual COBOL\\etc. If you copy this to your executable folder and then open up a Visual COBOL command prompt and change directories to the executable folder and type adiscf it will allow you to modify the settings. You can turn on the function keys using this method.
There is also an example program called ADISDemo available in the Samples Browser that shows how to turn on the function keys using the X:AF" call instead.
I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
The function keys now work. Thanks so much.
However the programs also have PGDN and PGUP which toggles between the various onscreen displays. How do I get the system to recognize these? Previously the value for PGUP was 53 and PGDN was 54.
Regards
Shirley
I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
When these two are turned on I get the correct values returned.
I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
I HAVE A LEGACY SYSTEM THAT I AM CONVERTING TO VISUAL STUDIO. HOW DO I GET THE PROGRAMS TO RECOGNISE FUNCTION KEYS ?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.