cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get a maximum value from array list?

Hello!

I have generated one dimendional array list, which has a different number of variables , depent from the case.

How to get a maximum value from array list?

I tried different examples, but none of them work:

PARAMETERS max_value_from_array = MAX(array)

or

PARAMETERS max_value_from_array = MAX(array[])
2 Replies 2
Anonymous
Not applicable
Hi,

To get the maximum value from an array you have to use the PUT and GET commands, eg.

PUT(array)
PARAMETERS max_value_from_array = MAX(GET(NSP))

Wesley
Anonymous
Not applicable
Thanks for the advice.
Now my code works correctly.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!