arrays

Stephen Gorton sgorton at usa.net
Mon Jan 9 04:24:21 EST 2006


cool

but
what are "keys"?
if i want an avg from numbers associated with elements 3,4,5,6,7,8 of 
array thearray
ie:     keys := thearray[3 .. 8]

or do i have to specify the entire list 3,4,5,6,7,8 ??

s



xavier.bury at clearstream.com wrote:

>Hi Stephen
>
>no struggle needed...
>
>
>put the keys of myarray into keylist
>repeat for each line thiskey in keylist
>get myarray[thiskey]
>if it is a number then put it & comma after nulist
>end repeat
>delete last char of nulist
>put average(nulist) into myAnswer
>
>cheers
>Xavier
>
>use-revolution-bounces at lists.runrev.com wrote on 09/01/2006 10:02:45:
>
>  
>
>>Hi
>>i'm struggling with this language (reference manuals have non-existant 
>>crossreferances - glorified faqs)
>>
>>what i want to do is hand a sub array to a function
>>but only a range of elements
>>ie
>>i want to get an average from a set of data
>>
>>put avg(thearray[3 .. 8]) into theaverage
>>
>>how do i hand the function an element range of an array??
>>
>>thanks
>>Stephen
>>
>>_______________________________________________
>>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
>>    
>>
>
>
>
>-----------------------------------------
>To make communications with Clearstream easier, Clearstream has
>recently changed the email address format to conform with industry
>standards. The new format is 'firstname.familyname at clearstream.com'.
>
>Visit us at http://www.clearstream.com
>
>IMPORTANT MESSAGE
>
>Internet communications are not secure and therefore Clearstream
>International does not accept legal responsibility for the contents of
>this message.
>
>The information contained in this e-mail is confidential and may be
>legally privileged. It is intended solely for the addressee. If you are
>not the intended recipient, any disclosure, copying, distribution or
>any action taken or omitted to be taken in reliance on it, is
>prohibited and may be unlawful. Any views expressed in this e-mail are
>those of the individual sender, except where the sender specifically
>states them to be the views of Clearstream International or of any of
>its affiliates or subsidiaries.
>
>END OF DISCLAIMER
>_______________________________________________
>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