dynamic arrays and returned_​​parameters

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

Viewing 2 reply threads
  • 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

Viewing 2 reply threads
  • The forum ‘Parameter connections’ is closed to new topics and replies.