min() and array

Paul Dupuis paul at researchware.com
Wed May 4 15:46:26 EDT 2016


On 5/4/2016 2:47 PM, Ludovic THEBAULT wrote:
> repeat with i=1 to 5
>    put 10 + i into tarray[i][v]
> end repeat
> put min(tarray[v])

You problem is with the second index on the array.

  repeat with i=1 to 5
    put 10 + i into tarray[i]
  end repeat
  put min(tarray)

works fine.

Or

  repeat with i=1 to 5
    put 10 + i into tarray[v][i]
  end repeat
  put min(tarray[v])

would work for the same value of 'v'




More information about the use-livecode mailing list