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

Syntax:                 MOUSEDRV

Use:                    To determine the presence of the mouse driver.

Parameters:             MOUSE

Returns:                The first character in the sending parameter will
                        have a "Y" if the mouse driver is present in memory,
                        and a "N" if it is not present.  If you did not pass
                        the parameter correctly (e.g. FOXLIB
                        ="ZOUSE"), your sending parameter will be unchanged.

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

                        From this example, the mouse driver is present in
                        memory.

Example:                if substr(FOXLIB,1,1) = "N"
                           @ 1,0 Say "Error!  Need mouse driver in memory."
                           @ 2,0 Say "Exit from application, load mouse"
                           @ 3,0 Say "driver into memory, and re-start"
                           @ 4,0 Say "program."
                        endif

                        If your application requires a mouse, first test to
                        see if the mouse driver has been loaded into memory.

See Also: MOUSETYP MOUSEVER MOUSELNG MOUSERHT MOUSELFT MOUSESHW MOUSEHID MOUSECTR

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