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



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to