mIRC Home    About    Download    Register    News    Help

Print Thread
#76511 24/03/04 07:46 PM
Joined: Dec 2003
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Dec 2003
Posts: 3
any chance of actuall foreach loops being added to the scripting?

i know its kinda possible with regualr if statements, but would be alot easier and cleaner to use for/foreach instead.

TalieseN

#76512 24/03/04 07:56 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
A foreach loop to loop for each what, exactly?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#76513 24/03/04 08:02 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
For Each would be very nice for $com scripting as you can use it to iterate collections that you couldn't otherwise do anything with...such as the Files collection of the Folder object in the FileSystemObject. A simple For loop can easily be accomplished using a While loop, as can a Do Until loop. That being said, I doubt that collections had anything whatever to do with what taliesen was talking about.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard