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

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to