Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>afill()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
AFILL()


Syntax:     AFILL(<array>, <exp> [,<expN1> [,<expN2>]])

Purpose:    To fill an array with a chosen value.

Arguments:  <array> is the array to fill.

            <exp> is the value to place in each array element.  It
            can be an expression of any data type.

            <expN1> is the position of the first element to fill.
            This argument is optional and defaults to one.

            <expN2> is the number of elements to fill starting with
            element <expN1>.  This argument is optional and defaults to
            all elements from the starting element to the end of the
            array.

Returns:    There is no return value.

Usage:      <Exp> is evaluated only once and therefore it is not
            possible to increment values for the range of array elements
            specified.

Library:    EXTEND.LIB


----------------------------------- Examples -------------------------------

   DECLARE alogic[15]
   AFILL(alogic, .F.)
   AFILL(alogic, .T., 5, 10)


See Also: ACOPY() ADEL() AINS()

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