Results 1 to 2 of 2

Thread: Can we access the parts of what maximize(stirng, int, int, boolean, boolean) returns?

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    4

    Question Can we access the parts of what maximize(stirng, int, int, boolean, boolean) returns?

    The five-parameter version of maximize() returns an integer-indexed array of anonymous records. Is there a way to capture this return value in a variable so that it can be indexed and field-extracted later at my leisure? I've poked around and tried some things but I haven't had any success. I can save it in a variable of "aggregate" type, but then I can't dig into it. Thanks for any advice y'all can provide.

  2. #2
    Senior Member
    Join Date
    Jun 2016
    Posts
    415

    Default

    You can plug the aggregate directly into a for-loop, to run through it: foreach i,maximizeResult in maximize(max,1,0,true,true)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •