min() and array

Richard Gaskin ambassador at fourthworld.com
Thu May 5 11:04:52 EDT 2016

Ludovic THEBAULT wrote:

 >> Le 4 mai 2016 à 21:46, Paul Dupuis:
 >> 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.
 > Thanks.
 > Too bad that this function don’t work with second index.

It does if you script for it:

   put min(tArray[i][v]

Interestingly, no matter which variant I try the value I see in v8.0 is 
15, which is the max not the min.  Anyone else seeing that?

  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  Ambassador at FourthWorld.com                http://www.FourthWorld.com

More information about the Use-livecode mailing list