IB Statements/intel

From CometWiki

< IB Statements(Difference between revisions)
Jump to: navigation, search
Badge (Talk | contribs)
(New page: '''INTEL function''' '''Syntax:''' INTEL(numeric-argument) '''Discussion:''' The INTEL function returns a 2-byte string in Intel (byte-reversed) format representing the hex equivale...)

Latest revision as of 11:00, 22 May 2009

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