Example of a VALUE ARRAY Declaration

The following example declares DAYS to be a value array of real elements. DAYS stores the names of the days of the week, one day name in each two words. The string FRIDAY, for example, is stored in DAYS[8] and DAYS[9], and can be retrieved by assigning a pointer to DAYS[8] and using the pointer.

VALUE ARRAY DAYS ("MONDAY      ", "TUESDAY     ",
                  "WEDNESDAY   ", "THURSDAY    ",
                  "FRIDAY      ", "SATURDAY    ",
                  "SUNDAY      ")