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

Syntax:                 MOUSEVER

Use:                    To determine the mouse version.

Parameters:             MOUSE

Returns:                The first character in the sending parameter will
                        have the mouse major version number, and the second
                        character in the sending parameter will have the
                        mouse minor version number if the mouse driver is
                        present in memory.  If the mouse driver is not
                        present in memory, you will get garbage.  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

                        . load c:\FOXLIB\mousever
                        . FOXLIB = "MOUSE"
                        . call mousever with FOXLIB
                        . ?asc(substr(FOXLIB,1,1))
                        . 6
                        . ?asc(substr(FOXLIB,2,1))
                        . 36
                        . rele modu mousever

                        From this example, the mouse version number is 6.36.

                        Please note that our mouse displayed version 6.24
                        when we executed mouse.com from the DOS prompt.
                        When we used the FOXLIB command MOUSEVER from
                        within FOX it returned version 6.36.

Notes:                  First determine if the mouse driver has been loaded
                        into memory using the FOXLIB command "MOUSEDRV"
                        before using this command.  Otherwise, you will get
                        unwanted results.

See Also: MOUSEDRV MOUSETYP MOUSELNG MOUSERHT MOUSELFT MOUSESHW MOUSEHID MOUSECTR

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