Array of (keyword)

From RemObjects Software

Jump to: navigation, search

This is a Oxygene Keyword topic
Feel free to add your notes to this topic below.



array of is used for arrays initialization:

type
  TypeBoundArray: array [0..5] of String;
var
  unboundArray: array of String;     //unbound array
  boundArray: TypeBoundArray;        //bound array
begin
  unboundArray := new String[25];    // 25 strings 0..24
  boundArray := new TypeBoundArray;  // 6 strings 0..5
  ...
  var x: array of Integer := [1,2];  //2 integers
  ...

Arrays will be initialized if they comply with the three following rules:

  • all bounds are specified (array[0..] of byte won't be initialized, array[0..10] of byte will be)
  • they are defined as a field or local var
  • they don't have an initial value explicitly assigned


See Also


Product: RemObjects Oxygene (formerly known as Chrome)
Current version: 3.0 Previous Versions: 'Joyride' (2.0), 'Floorshow' (1.5), 'Adrenochrome' (1.0)

GlossaryKeywordsLanguage FeaturesPlatform FeaturesSamplesArticlesHow ToIssues

Personal tools