referencing variable names in an array?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

PoLyGLoT
Posts: 105
Joined: Sat Jan 14, 2012 12:37 am

Re: referencing variable names in an array?

Post by PoLyGLoT » Thu Aug 22, 2013 2:19 am

Thanks to you all for helping to explain an array. The analogies are good ones.

Are there ways to get "averages" out of arrays. For instance, get the average of item 5 of the keys of myArray? Just curious.

Thank you again.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: referencing variable names in an array?

Post by dunbarx » Thu Aug 22, 2013 5:01 am

You can do a whole array, provided the elements are all numbers, Otherwise, likely you will have to extract the pertinent data and do it "outside". It is not much different than asking if you can get the average of the middle five lines of a list. You must be able to address those particular elements explicitly if they are a subset of some larger entity.

Craig Newman

Post Reply