O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Complete Command-Processing API

By now, you probably feel that you have a pretty good understanding of the QCMDEXC and QCMDCHK APIs. You know that QCMDEXC can be used to execute almost any command from within your program, and that QCMDCHK can be used to prompt for and edit a command from within your program. What if you simply wanted the operator to press a function key to get a window where a command could be entered? You would probably want to edit the command for validity. You might also want to record the information that the user entered in response to that prompt.

One way to accomplish these goals would be to combine QCMDCHK and QCMDEXC, but a better way would be to use the Process Commands API (QCAPCMD). QCAPCMD lets you edit a command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required