Navigation:  thinBasic Modules > Core > Array functions >

ARRAY FILL

Previous pageReturn to chapter overviewNext page

 

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

 

 

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com