Array Parameters

You can declare array properties, and arrays can also be used as parameter and function return types.

Array paremeters must always be declared without specifying the size of each dimension, as it’s only a formal parameter declaration. The actual parameter determines the actual size of each dimension.

Class cMyButton is a Button

 

    Procedure Construct_Object

        Forward Send Construct_Object

 

        Property Integer[] piValues

        Property tUSAddress[] pCurrentAddress

    End_Procedure

    

    Procedure ProcessValues Integer[] values

        //...

    End_Procedure

 

    Function CreateValues Returns Integer[]

        Integer[] iValues

        //...

        Function_Return iValues

    End_Function

 

    //Assuming a struct type tUSAddress has been declared somewhere else

    Function TransformAddresses tUSAddress[] adresses Returns tUSAddress[]

        tUSAddress[] returnAddresses

        //...

        Function_Return returnAddresses

    End_Function

 

End_Class

See Also

Declaring Variables