setProp question

Thomas McGrath III mcgrath3 at mac.com
Tue Jan 20 14:32:57 EST 2009


Is there a way to find out what custom property was set by using the  
setProp control structure?

My custom properties are all in the default custom property set  
"customKeys" and they are set from many places depending on user  
action. I just want to know that or if any of them were changed so  
that I can do a clean up of another objects custom properties.

First off the example in the dictionary is wrong or at least won't  
compile:
	
setProp mySet[thisProperty] newValue
	if thisProperty is "that" then put newValue into me
end setProp

This led me to believe that I could script this:

  setProp customKeys[thisProperty] newValue
    	 if thisProperty is among the customKeys of this card then
		beep -- replaced by my cleanup code
	end if	
end setProp

This of course does not work. Are there any ideas on a better way to  
detect what was changed???


Thanks in advance,

Tom McGrath III
Lazy River Software
3mcgrath at comcast.net

iTunes Library Suite - libITS
Information and download can be found on this page:
http://www.lazyriversoftware.com/RevOne.html








More information about the use-livecode mailing list