Creating Array - Auto Numeric

Alex Tweedly alex at tweedly.net
Tue Sep 18 19:59:45 EDT 2018


or,


    repeat for each trueword X in tQuote
       put (item 2 of the extents of tWordLocationA[X]) + 1 into t1
       put tWordLocation into tWordLocationA[X][t1]
    end repeat

Alex


On 18/09/2018 23:57, J. Landman Gay via use-livecode wrote:
> On 9/18/18 5:01 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>> # how to get "x" to increment? but only by each key in the array?
>
> Okay, try this:
>
>   put fld 1 into tQuote
>   repeat with x = 1 to the number of truewords in tQuote
>     put the number of lines in keys(tWordLocationA[trueword x of 
> tQuote])+1 into tNum
>     put tWordLocation into tWordLocationA[trueword x of 
> tQuote][tNum][tWordLocation]
>   end repeat
>





More information about the use-livecode mailing list