•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileARRAYFILL x(),y

x: name of an array (numerical variable type)
y: aexp

The instruction ARRAYFILL sets all elements of the array x() equal to the value
of the numerical expression y.

Example:

    DIM x(10)
    PRINT x(4)
    ARRAYFILL x(),5+1
    PRINT x(4)

--> The first number printed is zero, because when an array is dimensioned all
    elements are automatically set to zero. After filling the array with 5+1's,
    the number 6 is printed on the screen.

Note: It is not possibie to use the ARRAYFILL command with string arrays.

Memo: ARRAYFILL does not generate an error for undimensioned arrays in the
      editor or compiled.