ANN: GLX2 3.0.10

Richard Gaskin ambassador at fourthworld.com
Sun Aug 5 10:07:44 EDT 2012


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




More information about the use-livecode mailing list