Alejandro Tejada wrote:

> Could you extend this script to produce
> the differences between the text of two
> elements in an array?
> For example tArray[1] contains text
> and tArray[2] contains the same text
> of tArray[1] with only some small changes
> and possibly some additions.

This may help:


function MergeArray pSourceA, pDeltaA
  -- Merges the elements in the array pDeltaA with
  -- the array pSourceA, returning an array which
  -- contains the values of pDeltaA for any key
  -- which is also in pSourceA, and any keys in
  -- pDeltaA which are not in pSourceA are added:
  --
  repeat for each key tKey in pDeltaA
    put pDeltaA[tKey] into pSourceA[tKey]
  end repeat
  return pSourceA
end MergeArray



--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

_______________________________________________
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