happy little discovery - "repeat for each key"
    Phil Davis 
    revdev at pdslabs.net
       
    Wed Oct 15 14:59:54 EDT 2008
    
    
  
I don't know why I haven't seen this before, but yesterday I discovered 
to my great pleasure that we can use array keys in the "repeat for each" 
structure, like this:
   repeat for each key tKey in tMyArray
      put tMyArray[tKey] into fld tKey of this cd
   end repeat
It's especially useful in cases like the above where your array keynames 
are the same as your field names.
-- 
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
    
    
More information about the use-livecode
mailing list