Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- di_Library v. 0.1 - <b>di_inithtml()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
di_initHTML()
Create the skeleton of an HTML page and return a handle
------------------------------------------------------------------------------
Syntax

    di_initHTML() --> nDevice

Returns

    nDevice is a numeric device handle for a new HTML page.  If a
    device cannot be created, return value is 0.

Description

    Initializes a new HTML device, and creates a skeleton HTML page on
    the new device.  If successful, returns a handle for the initialized
    HTML device.  Device handles are created sequentially as powers of
    2.  The device number 1 is reserved for the screen; the first HTML
    device is numbered 2; the second HTML device numbered 4; the third,
    8; and so on.  Up to 20 HTML devices may currently be initialized
    and used.  For di_Library version 0.1, after the HTML devices are
    used up, the internal _diInitDevice(0) must be used to uninitialize
    all devices before HTML devices can be reinitialized. di_Library
    version 0.2 and above will provide more flexible options for
    initializing, deinitializing, and creating skeleton HTML devices.

Examples

    nPage1 := di_initHTML()
    nPage2 := di_initHTML()
    nPage3 := di_initHTML()
    ? nPage1, nPage2, nPage3            // Returns:     2      4      8

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson