Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>cdromver</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CDROMVER

Syntax:                 CDROMVER

Use:                    To determine the CD-ROM extension version.

Parameters:             CDROM

Returns:                The first character in the sending parameter will
                        have the CD-ROM major version number, and the second
                        character in the sending parameter will have the CD-
                        ROM minor version number if the CD-ROM extension
                        module is present in memory.  If the CD-ROM
                        extension module is not present in memory, you will
                        get garbage.  If you did not pass the parameter
                        correctly (e.g. FOXLIB = "ZDROM"), your sending
                        parameter will be unchanged.

Example:                . load c:\FOXLIB\cdromdrv
                        . FOXLIB = "CDROM"
                        . call cdromdrv with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu cdromdrv

                        . load c:\FOXLIB\cdromver
                        . FOXLIB = "CDROM"
                        . call cdromver with FOXLIB
                        . ?asc(substr(FOXLIB,1,1))
                        . 2
                        . ?asc(substr(FOXLIB,2,1))
                        . 10
                        . rele modu cdromver

                        From the above example, first verify that the CD-ROM
                        extension is present in memory.  If it is, determine
                        the CD-ROM extension version number.  In this
                        example it is 2.10.

See Also: CDROMDRV

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