# Some form of Record Array?

**URL:** <https://forum.kirupa.com/t/some-form-of-record-array/224297>\
**Category:** flash\
**Created:** [May 1, 2007, 12:30am UTC](https://forum.kirupa.com/t/some-form-of-record-array/224297 "2007-05-01T00:30:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chesso](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Chesso](https://forum.kirupa.com/u/Chesso)\
**Post date:** [May 1, 2007, 12:30am UTC](https://forum.kirupa.com/t/some-form-of-record-array/224297/1 "2007-05-01T00:30:07Z")

</div>

In Delphi (Object Pascal) I can create records (and object with accessible and creatable properties) and can also make this into an array, to have a Record Array, can this be done with AS2?

E.g.:

```auto
myRecord = Record()
{
  name: string;
  pn: integer;
}

myArray = Array [1..2] of myRecord;

myArray[0].name = "john";
myArray[0].pn = 25;

myArray[1].name = "peter";
myArray[1].pn = 36;

```

The above code somewhat resembles Object Pascal, but is just to show an example of what I mean. It is not perfectly accurate (op doesn’t use { and } for example lol).
