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

Syntax:                 CONVMEM

Use:                    To determine the amount of installed conventional
                        memory.

Parameters:             CONV

Returns:                The first three characters in the sending parameter
                        will have the amount of conventional memory

                        installed on the computer system.  If you did not
                        pass the parameter correctly (e.g. FOXLIB =
                        "ZONV"), your sending parameter will be unchanged.

Example:                . load c:\FOXLIB\convmem
                        . FOXLIB = "CONV"
                        . call convmem with FOXLIB
                        . ?substr(FOXLIB,1,3)
                        640
                        . rele modu convmem

                        From this example, there is 640K of conventional
                        memory installed on the computer system.

Example:                if val(substr(FOXLIB,1,3) <> 640
                           @ 1,0 Say "Error!  Need 640K of conventional"
                           @ 2,0 Say "memory to load application."
                           @ 3,0 Say "program."
                        endif

                        If your application requires 640K of conventional
                        memory, first determine the amount of installed
                        conventional memory before loading your program.

See Also: EXTMEM

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