ARRAY FILL

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Array functions >

ARRAY FILL

 

Description

 

Fill all or part of array elements with a value. Array can be any numeric or string type. Conversion will take care automatically.

 

Syntax

 

ARRAY FILL ArrayVariable([StartIndex]) WITH Expression

 

Returns

 

Numeric

 

Parameters

 

Name

Type

Optional

Meaning

ArrayVariable


No

Name of a declared and already dimensioned array.

StartIndex

Number

Yes

The element index inside the array from which to start. If omitted, 1 is assumed

Expression


No

Numeric or string expression. Relevant conversions will take place

 

Remarks

 

If StartIndex is <= 0 (zero), 1 is assumed.

 

Restrictions

 

See also

 

LBound, UBound, ARRAY ASSIGN,

 

Examples