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

NSUBSTR( cString, cDivider, n )

Purpose

Retrieve the nth portion of a string delimited with cDivider.

Arguments

     cString -- string to search

     cDivider -- delimiting character, e.g. '/'

     n -- which portion of the delimited string to return

Setup

None.

Example

     ? NSUBSTR( "Sandy/Hannah/Alex", ;
                '/', 3 )            && Returns "Alex"

Returns

The nth portion of cString, or a null string if it doesn't
exist. Note that the nth portion will be that part of cString
between the n-1th and nth occurrence of cDivider in
cString.

Side Effects

None.

Artful Calls

None.

Source File

AA_STRNG.C

See Also: ABREAK()

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