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

Syntax:                 NUMCHAR

Use:                    To determine if the parameter (byte) passed is a
                        character or a number.

Parameters:             Character or number.

Returns:                The first character in the sending parameter will
                        have a "C" if the parameter passed is a character,
                        a "N" if the parameter passed is a number.  If you
                        did not pass the parameter correctly (e.g. FOXLIB
                        = ""), your sending parameter will be unchanged.

Example:                . load c:\FOXLIB\numchar
                        . FOXLIB = "A"
                        . call numchar with FOXLIB
                        . ?substr(FOXLIB,1,1) = "C"
                        .T.
                        . rele modu numchar

                        From this example, the parameter passed is a
                        character.

Example:                . load c:\FOXLIB\numchar
                        . FOXLIB = "0"
                        . call numchar with FOXLIB
                        . ?substr(FOXLIB,1,1) = "N"
                        .T.
                        . rele modu numchar

                        From this example, the parameter passed is a number.

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