Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>posrange()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
POSRANGE()

Syntax:     POSRANGE(<expC1>,<expC2>,<expC3>[,<expL>])

Arguments:  <expC1> and <expC2> determine the first and last
            characters of a range of characters.
            <expC3> is the string within which a search for the
            characters from the <expC1> to <expC2> range is required.
            <expL> denotes how the function should search.

Returns:    A numeric value.
            The value corresponds to the position of the character found.

Usage:      POSRANGE() will search for the first character in the
            <expC3> string from the left, which lies within the <expC!>
            to <expC2> range of characters.  If <expL> is (.T.), then the
            function will search for the first character which does not lie
            within the indicated range.  If <expC1>=CHR(0) and
            <expC2>=CHR(31) it is possible to search for control
            characters in a string.

Notes:      A 0 (zero) is returned if no character is found.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Searching for the first character in the
            * string.
            * "Input" which is not a control character
            input = COM_READ(1)

            ? POSRANGE(CHR(0),CHR(31),input,.T.)



See Also: POSALPHA() POSLOWER() POSUPPER() RANGEREPL()

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