Hey John,
Not sure if I'm understanding you correctly but...
list1 = [[#name:"a"], [#name:"b"]]
list2 = [[#name:"b"], [#name:"c"]]
tTest = [#name:"b"]
if list1.getOne(tTest) + list2.getOne(tTest) = 2 then
put "A match is found"
end if
-Rob
On Tue, 2 Aug 2005 13:45:25 -0700, JOHN HART <[EMAIL PROTECTED]> wrote:
Hi, all,
D8.5.1 / XPPro
I'm looking for a fast way of comparing two string values in two lists.
Each list is a prop list wrapped inside a linear list.
The slow way is to step through each value in one list, comparing it
to values in the second list. But this is so slow, cumbersome, in
inelegant. Example:
repeat with x in firstList
repeat with n in secondlist
if the name of x = the name of n then
do stuff here...
exit repeat
etc.
It would be sweet if I could tell ask the SecondList right off the
bat, "do you have this value in your list?" without using a repeat
loop, then compare it to the value in firstList. I've tried getOne,
getPos, and getOutOfTown, but nothing works the way I expected on a
proplist inside a linear list. Must I remove each proplist one-by-one,
use getOne on the proplist, then continue on? Gads. That still
involves a repeat loop.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]