What would be the proper way to return a two-dimensional list from a method?

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
HMJust
Posts: 51
Joined: Wed May 11, 2016 7:23 pm
Contact:

What would be the proper way to return a two-dimensional list from a method?

Post by HMJust » Fri Sep 08, 2017 6:24 pm

What would be the proper way to return a two-dimensional list?

Like, I have a list of value-groups (different types). A list of lists of string, decimal, decimal, string, decimal

I wish to define this, add to it and return it from a method.
I don't know what I am doing, nor how I did it. If it works, luck was involved :geek:

dannyoorburg
Posts: 169
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: What would be the proper way to return a two-dimensional list from a method?

Post by dannyoorburg » Fri Sep 08, 2017 7:43 pm

My instinctive answer would be to wrap it up inside a Reusable Part and pass the reference around....

Danny

Post Reply