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

Syntax:                 DOSVERS

Use:                    To determine the DOS version.

Parameters:             DOS

Returns:                The first character in the sending parameter will
                        have the DOS major version number, and the second
                        character in the sending parameter will have the DOS
                        minor version number.  If you did not pass the
                        parameter correctly (e.g. FOXLIB = "ZOS"), your
                        sending parameter will be unchanged.

Example:                . load c:\FOXLIB\dosvers
                        . FOXLIB = "DOS"
                        . call dosvers with FOXLIB
                        . ?asc(substr(FOXLIB,1,1))
                        3
                        . ?asc(substr(FOXLIB,2,1))
                        30
                        . rele modu dosvers

                        From this example, the DOS version is 3.30.  Your
                        application may require a certain DOS version, i.e.
                        3.30 or higher.

Example:                load dosvers
                        FOXLIB = "DOS"
                        call dosvers with FOXLIB
                        IF asc(substr(FOXLIB,1,1)) < 3
                           @ 3,0 Say "Application requires DOS 3.3 or"
                           @ 4,0 Say "greater.  Press any key to exit."
                           Wait ""
                           return
                        Endif
                        IF asc(substr(FOXLIB,1,1)) = 3 .and.
                        asc(substr(FOXLIB,2,1)) < 30
                           @ 3,0 Say "Application requires DOS 3.3 or"
                           @ 4,0 Say "greater.  Press any key to exit."
                           Wait ""
                           return
                        Endif

                        If your application needs more than 20 file handles
                        open at one time, make sure the DOS version is
                        greater than or equal to 3.30.

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