IB Statements/intel

From CometWiki

Jump to: navigation, search

INTEL function

Syntax: INTEL(numeric-argument)

Discussion: The INTEL function returns a 2-byte string in Intel (byte-reversed) format representing the hex equivalent of the decimal numeric-argument. This is especially helpful when doing Windows programming.

The INTEL and INTELD functions were implemented in support of the Internet Basic Windows Driver Library. Both functions can be used in Data Division of the program (with a constant numeric argument) and in the Procedure Division of the program (with a constant or variable numeric argument).

The INTELD function works just like the INTEL function except that it returns a double-word (4-byte) string.

History: This function was added in Comet 504.

Example: AX$=INTEL(DOS.FILE.WRITE)

In this example AX$ would contain "@4000@" if DOS.FILE.WRITE was 64.

Personal tools