dynamic arrays and returned_​​parameters

Home Forums Problems and solutions in GDL Parameter connections dynamic arrays and returned_​parameters

This topic contains 2 replies, has 2 voices, and was last updated by  Kristian Bursell 10 months, 2 weeks ago.

  • Author
    Posts
  • #2842

    Kristian Bursell
    Participant

    Can we use the returned_parameters function on a dynamic array parameter in a macro? If so, how? I could not get it to work using the standard method.

    CADSWIFT
    Australia

  • #2845

    Gergely Fehér
    Keymaster

    Dynamic arrays can be returned, but it will be converted to a single array. If we need to return data in this way, we usually return the sizes of the array first, the the array itself:
    end arraySize1, arraySize2, array

    After that in the caller object you can rebuild the original array in a nested loop.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #2846

    Kristian Bursell
    Participant

    perfect! you guys are brilliant! all the answers follow the most direct logic and simplify very powerful functionality.

    CADSWIFT
    Australia

You must be logged in to reply to this topic.