From: "Steckly, Ron" Date: 2007-12-08T10:04:13+09:00 Subject: Completely dumb iterator question from a newbie ------_=_NextPart_001_01C83935.DB267010 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, =20 So I have a question about iteration. Here's some code I saw on Ruby on Windows: =20 inbox.Items.each do |message| message.Attachments.each do |attachment| filename =3D "c:\\attachments\\#{attachment.FileName}" attachment.SaveAsFile(filename) =20 File.delete(filename) if File.size(filename) < 500000 end end =20 What I find troubling is 'message,'. How do we know the variable to iterate over? I have the same issue with VBScript, where the same code would be: =20 For each objMessage in colItems Etc. Next =20 The thing that's bothering me is where people decide the thing to iterate over. How do you decide what to put between the pipes | |? =20 Sorry for the retarded question, =20 Ron =20 =20 =20 ------_=_NextPart_001_01C83935.DB267010--