Adding Arrays to Classes

  1. 7 months ago

    Ok, just starting out - and I cant seem to find anything here about how I use the IDE to add an Array as a property to a class definition

    I can use the IDE to define a class OK, I can add properties, such as text and integers but it wont let me add an array - am I missing something simple?

  2. Dave S

    2 Nov 2018 San Diego, California USA

    you add a property, and put () after its name

  3. Bob K

    2 Nov 2018 Pre-Release Testers, Xojo Pro Kansas City

    if you add () to the end of the property it tells it it's an array.

    so if you create an integer property, Age, before you would just declare it as Age() to make it an array.

  4. Art G

    2 Nov 2018 Prescott AZ

    You can also define a fixed size array, like Age(9).

  5. OK I thought I'd tried that but it seems to be working now so clearly I hadn't. Thanks.

or Sign Up to reply!