AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loop, Read, VARIABLE

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Sun Mar 20, 2005 9:05 pm    Post subject: Loop, Read, VARIABLE Reply with quote

can another Loop exactly like (Loop, Read, Filename) can be added to AHK (from exactly.. i mean with the same options.. like A_LoopReadLine.. etc.. ).. there's Loop, Parse .. but thats different.. so if it can be added.. that'd be great..
thanks
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sun Mar 20, 2005 9:10 pm    Post subject: Reply with quote

If you want to read the contents of a variable line by line (as though it were a file, perhaps read in via FileRead), follow this example:
Code:
Loop, parse, MyVar, `n, `r
{
    MsgBox Line number %A_Index% is:`n%A_LoopField%
}
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group