Creating Array - Auto Numeric

J. Landman Gay jacque at hyperactivesw.com
Tue Sep 18 18:57:09 EDT 2018


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

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list