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

To Exist or Not to Exist, That Is the Question

With apologies to Mr. Shakespeare, the question of whether a given object exists or not is often important when you need to edit operator entries. For example, you might present users with a screen that allows them to enter a printer name or output queue to which the program will send a report. Frequently, a user will mistype the name of the desired printer or output queue. To avoid surprising the operator with CPF-type system errors, it is better for your program to determine if the object name really exists on the system. Of course, even better would be to display a list of printers or output queues, and let users select their destinations. Why have them type in names, when APIs such as Open List ...

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