Hi All,
How delete a custom propertie of an object by script ?
Thank you for help
Jean-Marc
			
			
									
									
						undefine a custompropertie by script
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller
Dear Jean-Marc,
This script deletes custom property "foo" from an object, after it has been clicked on.
Best regards,
Mark
			
			
									
									This script deletes custom property "foo" from an object, after it has been clicked on.
Code: Select all
on mouseUp
   put the customProperties of me into myArray
   delete variable myArray["foo"]
   set the customProperties of me to myArray
end mouseUpMark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
						The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
undefine a custompropertie by script
Dear Mark
I'm confuse,
I watch after a search in the forum i have forgotten to thank you for your script.
It work fine also with param like that
Best regards 
Jean-Marc
			
			
									
									
						I'm confuse,
I watch after a search in the forum i have forgotten to thank you for your script.
It work fine also with param like that
Code: Select all
on dDelprop n,g
   put n into LaProp
   put g into BufIm
   put the customProperties of image bufIm  into myArray
   delete variable myArray[LaProp]
   set the customProperties of image bufIm  to myArray
end dDelprop
Jean-Marc

