Quickest was to compare 2 CR lists?
Klaus Major
klaus at major-k.de
Tue Nov 4 04:25:37 EST 2008
Bonjour Eric, mon ami,
> Bonjour Klaus,
>
> In my compare scripts plugin, I use the following function that
> might get you started :-)
>
> function UnCommonList plist1,plist2 -- returns lines of pList1 not
> found in pList2
> local tArray1,tArray2,tUncommonList
> ------
> put empty into tArray1
> put empty into tArray2
> -----
> repeat for each line tLine in plist1
> put 1 into tArray1[tLine]
> end repeat
> -----
> repeat for each line tLine in plist2
> put 1 into tArray2[tLine]
> end repeat
> -----
> get the keys of tArray1
> repeat for each line tLine in it
> if tArray2[tLine] = 0 then put tLine & cr after tUncommonList
> end repeat
> -----
> delete char -1 of tUncommonList
> return tUncommonList
> end UnCommonList
an interesting approach, will take a closer look :-)
Merci bien!
Best
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list