HP 3000 Manuals

CCODE [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

CCODE 

The CCODE function returns the condition code set by the last called MPE
XL intrinsic.  The results are:

    Intrinsic condition                 CCODE                       Meaning: 
           code:                       Returns: 

--------------------------------------------------------------------------------------

CCG                          0                            A special condition occurred
                                                          but the request may have
                                                          been granted.

CCL                          1                            An error has occurred and
                                                          the request was not granted.

CCE                          2                            Request has been granted.

Refer to the MPE XL Intrinsics Reference Manual for more information.

Syntax 

CCODE

Examples 

The example below calls an intrinsic (Findjcw), and then uses the CCODE
function to make sure the intrinsic was executed successfully.

     10 INTRINSIC Findjcw
     20 CAll Findjcw
     30 IF CCODE < 2 THEN GOSUB 300
     .
     .
     .



MPE/iX 5.0 Documentation