HPlogo Message Catalogs:Programmer's Guide: HP 3000 MPE/iX Computer Systems > Chapter 3 Accessing Application Message Catalogs

Opening a Catalog

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The CATOPEN intrinsic opens an application message catalog. The syntax for the CATOPEN intrinsic is:

  • catindex := CATOPEN (formaldesignator, catstatus);

The catindex is a value returned by the CATREAD intrinsic used to identify the message catalog being accessed. This number is not the same as the file number. The formaldesignator parameter contains the string that identifies the catalog file to open; catstatus returns the error number. It tells if the call is successful. An example of opening the example catalog, FORMAT, would be done as follows:

     var 

       Designator : packed array [1..7] of CHAR; 

       Catstatus  : packed array [1..2] of SHORTINT; 

       Catindex   : INTEGER; 



       Designator := 'FORMAT '; 

       Catindex := CATOPEN (Designator, Catstatus); 

For detailed information about the CATOPEN intrinsic, refer to the MPE/iX Intrinsics Reference Manual (32650-90028).

Feedback to webmaster