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

 DESCRIPTION

 C_ATOCHAR() converts a Clipper array to a character string with
 each array element separated by a specified delimiter.  The Clipper
 array can contain any type of data with the exception of memo and
 array.  The optional starting and ending elements in the array can
 also be specified.

 NOTES

 The C_ATOCHAR() will only convert one-dimensional arrays and can
 not convert elements containing other arrays.  To convert multi-
 dimensional arrays use C_ATOCHAR() in a loop and convert each
 dimension one at a time, storing each dimension to a separate
 character string.

 SYNTAX

 C_ATOCHAR(array [,st_pos] [,end_pos] [,delimiter])

 PARAMETERS

 array (A) is the array to convert.

 st_pos (N) is the optional starting element in the array.  If
 st_pos is not specified, the default of one (1) is used.

 end_pos (N) is the optional ending element in the array.  If
 end_pos is not specified, the default of the entire array is used.

 delimiter (C) is the optional delimiter used to separate each array
 element in the character string.  If delimiter is not specified, a
 semi-colon (;) is used as the delimiter.

 RETURNS

 C_ATOCHAR() returns a delimited character string containing the
 specified array elements.

 EXAMPLES

 declare a1[3]      && Setup array
 a1[1] = "FIRST"
 a1[2] = date()
 a1[3] = 123.67

 s1 = c_atochar(a1,1,3,";")   && Convert array to a character string

 ? s1 --> ;FIRST;01/01/90;123.67;


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

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