[ANN] HOOT: Hacked Object Oriented Transcript

Geoff Canyon gcanyon at inspiredlogic.com
Tue Feb 28 04:06:50 CST 2006


Handling cards as well:

getProp uRuggedID
   get the long id of the target
   if word 1 of it is "card" then return word 1 to 3 of it
   if "card" is among the words of it then return (word 1 to 3 of it  
&& word -7 to -4 of it)
   return word 1 to 3 of it
end uRuggedID

getProp uRuggedLongID
   get the long id of the target
   if word 1 of it is among the words of "card stack" then return it
   if "card" is among the words of it then return (word 1 to 3 of it  
&& word -7 to -1 of it)
   return (word 1 to 3 of it && word -3 to -1 of it)
end uRuggedLongID



More information about the use-livecode mailing list