At 8:07 PM +0100 12/13/00, John Kanding wrote:
>BTW has anyone a good method as to change the property of a property
>list, like in [#john:100, #kurt:200]
>Now change #john to #Bill
>
>John
>
on ChangeProp theList, existingProp, newProp
theValue = getAProp(theList, existingProp)
if voidp(theValue) then
-- this property wasn't found
-- put up an error message if you want to
-- or whatever
return
end if
deleteProp(theList, existingProp) -- out with the old
addProp(theList, newProp, theValue) -- in with the new
end
This may change the order of items in your list, but that shouldn't
matter if this is a property list.
Irv
--
Lingo / Director / Shockwave development for all occasions.
(Over two millions lines of Lingo code served!)
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]