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>cdromdrv</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CDROMDRV

Syntax:                 CDROMDRV

Use:                    To determine the presence of the MS CD-ROM
                        extensions (MSCDEX.exe).  If your application is
                        retrieving information from a CD-ROM, you should
                        first see if the extensions are loaded into memory.

Parameters:             CDROM

Returns:                The first character in the sending parameter will
                        have a "Y" if the extensions are present in memory,
                        and a "N" if they are not present.  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

                        From the above example, the CD-ROM extension is
                        present in memory.

Example:                if substr(FOXLIB,1,1) = "N"
                           @ 1,0 Say "Error!  Need MS CD-ROM extensions."
                           @ 2,0 Say "Exit from application, load MS CD-ROM"
                           @ 3,0 Say "extensions, and re-start program."
                        endif

                        Use the above example to warn the computer user if
                        the CD-ROM extensions are not loaded into memory.

See Also: CDROMVER

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