Status Code Macros - Intermec Janus 2010 Reference Manual

Intermec janus 2010: reference guide
Hide thumbs Also See for Janus 2010:
Table of Contents

Advertisement

JANUS PSK for Ada Reference Manual

Status Code Macros

When using any of the Intermec library functions, you can check for a
specific status value or you can use one of the PSK macros to determine the
severity of the returned status codes. For portability with future Intermec
products, we recommend that you use the macros.
The following macros are included in IM20ADAD.LIB:
im_iserror ( status ) This macro returns a nonzero number when status
indicates an error (either fatal or nonfatal). Zero is returned if status
indicates either success or warning.
im_issuccess ( status ) This macro returns a nonzero number when status
indicates either success or warning. Zero is returned if status indicates an
error (either fatal or nonfatal).
im_isgood ( status ) This macro returns a nonzero number when status
indicates success.
im_iswarn ( status ) This macro returns a nonzero number when status
indicates a warning.
The following example uses IM_ISERROR to test for an error and then
prints the error message on the reader display.
im_get_display_mode (size, video, scroll, char_ht, status);
if im_iserror (status) then
end if;
2-16
Put ("Get Disp Mode error = ");
SYSWORD_IO.Put (status, WIDTH => 8);
New_Line;

Advertisement

Table of Contents
loading

This manual is also suitable for:

Janus 2050Janus 2020Janus psk for ada

Table of Contents