Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

ABREAK( cDivider, cString[, aArray ] )

Purpose

Count the instances of cDivider in cString, and optionally
fill an array with the parts demarcated by this delimiting character.

Arguments

     cDivider -- the character string which identifies a break
                     (defaults to "/")

     cString  -- the character string to break up

     aArray   -- if passed, the array to fill with the components of
                     cString

Setup

Call this function once to size the array to fill, then call it a second
time to fill the array.

Returns

The number of components of cString.

Side Effects

If passed, aArray will contain the components of cString.

Example

     LOCAL xkeys[ ABREAK( "/", "Name/Account #" ) ]
     ABREAK( "/", "Name/Account #", xkeys )
     ? LEN( xkeys )          && Returns 2
     ? xkeys[1]              && Returns "Name"
     ? xkeys[2]              && Returns "Account #"

Artful Calls

None.

Source File

AA_STRNG.C

Notes

The number of components in cString is always one more than the number
of instances of cDivider. For example "A/B/C" has two breakpoints
("/") and three components ("A", "B", and "C").

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