Extracting data grid get column data

Keith Clarke keith.clarke at clarkeandclarke.co.uk
Sat May 21 12:07:07 EDT 2011


...thanks Slava - another efficiency gain! Lucky I shared this example before I added the sort command - also inside the repeat loop (but no longer)! :-)
Best,
Keith..
 
On 21 May 2011, at 16:44, Slava Paperno wrote:

> Does the "filter..." line need to be inside the repeat loop?
> 
> S.
> 
>> -----Original Message-----
>> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
>> bounces at lists.runrev.com] On Behalf Of Keith Clarke
>> Sent: Saturday, May 21, 2011 8:14 AM
>> To: How to use LiveCode
>> Subject: Re: Extracting data grid get column data
>> 
>> ...actually, the iterative approach seems fast enough...
>> 
>> put the keys of tArray into tRows
>> repeat for each line tRow in tRows
>>    put return & tArray[tRow]["name"] after tNames
>>    filter tNames without empty
>> end repeat
>> 
>> Best,
>> Keith..
>> 
>> On 21 May 2011, at 11:49, Keith Clarke wrote:
>> 
>>> Hi folks,
>>> Is there a direct way of extracting the data from 'cells' within a
> specific data
>> grid column or is the most efficient (only?) way to iterate through via
> the rows,
>> extracting array[rowNumber]["column"]["data"] each time?
>>> Best,
>>> Keith..





More information about the use-livecode mailing list