mIRC Home    About    Download    Register    News    Help

Print Thread
#244476 03/03/14 07:33 PM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Well, I have a window, which I want to list through each line and read the first word in each line.
I have used $line(@window,0) to get the line count, which I then use a while loop to loop through each line, I can get it reading the entire line with $line(Window,%lineNumber) but I don't know how to get only the first word from that line smile please help!

Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Originally Posted By: Help file (/help $gettok)
$gettok(text,N,C)
Returns the Nth token in text.
The C parameter is the ascii value of the character separating the tokens.


$gettok(a.b.c.d.e,3,46) returns c
$gettok(a.b.c.d.e,9,46) returns $null
...

Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Thanks, works perfectly <3


Link Copied to Clipboard