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

 DESCRIPTION

 C_CHARTOA() converts a character string to an array using a pre-
 assigned delimiter to divide each array element in the string.  The
 character string can be created manually (see example below) or can
 be returned from the C_ATOCHAR() function.

 SYNTAX

 C_CHARTOA(string, delimiter [,array])

 PARAMETERS

 string (C) is the character string to convert.

 delimiter (C) is the delimiter that divides each of the array
 elements in the string.  The delimiter can be any single character.

 array (A) is the array to store each element from the string.  The
 array must be declared to the correct length before calling
 C_CHARTOA() with the array argument and must be specified with
 quotes ("ARRAY").  If array is not specified, the number of
 elements in the character string, between the delimiter, is
 returned.  If array is specified, the array is filled with the elements.

 RETURNS

 C_CHARTOA() returns the number of elements in the character string
 between the specified delimiter.

 EXAMPLES

 && Setup delimited character string
 s1 = ";FIRST;123.67;JOHN SMITH;01/01/90;.T.;LAST;"

 private arr[ c_chartoa(s1,";") ]    && Declare array to correct length

 c_chartoa(s1,";","arr")             && Now fill array with elements
                                     && from the character string


See Also: C_ATOCHAR() C_ATOMACRO() C_DIRTOA() C_FTOMACRO()

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