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_partstr() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_PARTSTR()

 DESCRIPTION

 C_PARTSTR() extracts characters from a specified source string
 between two given delimiters and returns the first occurrence of
 the characters found.  The two delimiters do not have to be the
 same character and both delimiters can be included or excluded from
 the returned string.

 SYNTAX

 C_PARTSTR(string, st_delim, end_delim [,flag])

 PARAMETERS

 string (C) is the character string to search.

 st_delim (C) is the starting delimiter to find in the string.

 end_delim (C) is the ending delimiter to find in the string.

 flag (L) indicates whether the delimiters should be included or
 excluded from the returned string.  Specify true (.T.) to include
 the delimiters, or false (.F.) to exclude them.  If flag is not
 specified, the delimiters are excluded.

 RETURNS

 C_PARTSTR() returns the characters in the given string between the
 delimiters, or null ("") if not found.

 EXAMPLES

 s1 = "W/B,BG/N,,,B/G"       && Define color string

 && Extract first color between commas
 ? c_partstr(s1, "," , ",") --> BG/N


See Also: C_STRPARSE() C_STRSRCH() C_EXTCOLOR() C_STRDELIM()

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