Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GetIt Reference Guide - syntax: ch_ainit( <arrayc>, <value1> [, <value2> ...] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: CH_AINIT( <arrayC>, <value1> [, <value2> ...] )

Fills array with specified enumerated list.

Example

DECLARE scatterlist[3]
CH_AINIT(scatterlist, "Name", "Phone", "Salary")

Notes

The items in the list do not need to be of the same data type.

If the list is longer than the array size, then trailing values are ignored.

If the array is longer that than the list, then trailing elements are
unaffected.

The size of list is generally limited to a maximum of fifty items, depending
on Clipper's available parameter stack.

5.0: Arrays can be initialized in Clipper 5.0 with the {} construction.  The
example above can be accomplished in Clipper 5.0 with the command:

     DECLARE scatterlist[3] = { "Name", "Phone", "Salary" }

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