What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Suggestion] For loops

[Suggestion] For loops
Author: Message:
Ashylay
Junior Member
**

Intermediate Scripter

Posts: 70
Reputation: 1
– / Male / –
Joined: Mar 2007
O.P. [Suggestion] For loops
I cant seem to find anything to do with a for loop in the Scripting Documentation.

Would come in usefull for some things I suppose. Im not the best at for loops but could come in handy maybe?
04-01-2007 05:14 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: [Suggestion] For loops
The scripting documentation is for the Plus! APIs. It is not JScript documentation. You can find that on MSDN.
04-01-2007 05:32 PM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Jul 2005
RE: [Suggestion] For loops
quote:
Originally posted by deAd
The scripting documentation is for the Plus! APIs. It is not JScript documentation. You can find that on MSDN.
It is also available from the script database
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
04-01-2007 05:40 PM
Profile PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
34 / Male / Flag
Joined: Oct 2004
RE: [Suggestion] For loops
And to answer the actual question :p;
code:
for (do_initially; do_while; do_after_each_loop) {
    <Insert Code Here>
}

For example:
code:
for (var $i = 1; $i <= 10; $i++) {
    Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}


This post was edited on 04-02-2007 at 01:03 PM by Volv.
04-02-2007 01:03 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [Suggestion] For loops
quote:
Originally posted by Volv
code:
for (var $i = 1; $i <= 10; $i++) {
    Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}

If you remove the $s that is :P
[Image: spartaafk.png]
04-02-2007 07:32 PM
Profile PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Suggestion] For loops
quote:
Originally posted by RaceProUK
quote:
Originally posted by Volv
code:
for (var $i = 1; $i <= 10; $i++) {
    Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}

If you remove the $s that is :P

Actually, the $ is a perfectly valid character.
04-02-2007 07:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On