Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_strdelim() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_STRDELIM()

 DESCRIPTION

 C_STRDELIM() searches a given delimited string for the characters
 between a specified divider and returns the characters.  It can be
 used to find the first or any occurrence of the characters between
 the divider.

 SYNTAX

 C_STRDELIM(divider, string [,occurrence])

 PARAMETERS

 divider (C) is the divider contained in the delimited string.

 string (C) is the delimited character string to search.

 occurrence (N) is the number of occurrences of the divider to find
 beginning at one.  If occurrence is not specified, the first
 occurrence is returned.

 RETURNS

 C_STRDELIM() returns the character string between the specified
 divider and occurrence, or null ("") if not found.

 EXAMPLES

 * The string STR1 was read from a text file using C_FILEREAD().  The
 * text file was created by Clipper's COPY TO <file> DELIMITED WITH "
 * (quote).  (The "fields" in the text file are divided by a comma (,)
 * and the character data is delimited by a double quote (") ).
 * STR1 = '"VA",500,19900101,1.23,T'

 c_strdelim(",",str1,1)--> VA
 c_strdelim(",",str1,2)--> 500
 c_strdelim(",",str1,3)--> 19900101
 c_strdelim(",",str1,4)--> 1.23
 c_strdelim(",",str1,5)--> T


See Also: C_STRPARSE() C_STRSRCH()

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