Simple Arrays

Michael Kann mikekann at yahoo.com
Sun Jan 10 13:15:39 EST 2010


More goodies:

http://www.runrev.com/newsletter/july/issue53/newsletter1.php

More baddies:

It looks like the "extents" function only works for one dimension of an array

on mouseUp
put uno_uno into a[1][1]
put uno_dos into a[1][2]
put dos_uno into a[2][1]
put dos_dos into a[2][2]
put the extents of a into fld 1
end mouseUp

--
fld 1 will have  1,2 -- just one line
---- 
-- according to  the dictionary we should get 2 lines, one for each dimension


Use the extents function to find the minimum and maximum row and column numbers of an array whose keys are integers.

Parameters:
The array is any array of any dimension whose keys are numbers.

Value:
The extents function returns one line for each dimension of the array.

Each line contains two numbers separated by commas. The first item is the lowest key number in that dimension, and the second item is the highest key number.

Comments:
If any of the keys of the array is non-numeric, the extents function returns empty.


--- On Sun, 1/10/10, Roger Guay <irog at mac.com> wrote:

> From: Roger Guay <irog at mac.com>
> Subject: Re: Simple Arrays
> To: use-revolution at lists.runrev.com
> Date: Sunday, January 10, 2010, 11:43 AM
> I very much appreciate this
> discussion about arrays and I too have learned a lot. Any
> chance someone has done a tutorial?
> 
> Thanks and cheers,
> Roger Guay
> 
> 
> On Jan 10, 2010, at 10:05 AM, use-revolution-request at lists.runrev.com
> wrote:
> 
> > Re: Simple Arrays
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


      



More information about the use-livecode mailing list