### Declaring array variables

You can declare array variables by following the type name with the keyword Array.

##### Example

    //Declare x to be a Global variable of
    //Number Array type
    Global NumberVar Array x := [10 , 20, 30];
    //cost is a Global variable of Currency Array type
    //It is automatically Global since the scope specifier
    //(one of Local, Global or Shared) is omitted.
    CurrencyVar Array cost := [$19.95, $79.50, $110.00,
                               $44.79, $223.99];
    //payDays is a Global variable of Date Array type
    Global DateVar Array payDays := [CDate(1999, 5, 15),
    CDate(1999, 5, 31)];
    //y is a Shared variable of String Range Array type
    Shared StringVar Range Array y := ["A" To "C",
                                       "H" To "J"];
    //days is a Local variable of String Array type
    Local StringVar Array days;
    days := ["Sun", "Mon", "Tue", "Wed", "Th",
             "Fri", "Sat"];

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com