Adding Arrays to Classes

  1. 6 weeks 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

    Nov 2 San Diego, California USA

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

  3. Bob K

    Nov 2 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

    Nov 2 Prescott AZ

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

  5. 5 weeks ago

    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!