mIRC Home    About    Download    Register    News    Help

Print Thread
$flinen $fline(@name,wildtext,N,T,StartLine) #266436 08/12/19 02:25 AM
Joined: Jan 2004
Posts: 1,282
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,282
Currently, handling all matches in a @window is inefficient, because you can't resume after the last found position, as you can do with $read.

It would be helpful if there were a 5th parm which allows the search for the Nth match to begin at a specific line number, and that each match could also set a var like $flineN which behaves similarly to $readN. This way a script could search beginning from the last match using $fline(@name,wildtext,1,T,$calc(1+$flineN)).text without needing to search across the entire window for matches 1 through N-1, when all you're needing is the 1st match beginning with line XX.

Either that, or a /command|@win parameter which lets you execute an alias for each match found.

To make it simpler to implement, the T parm should be required in order to use the 5th.

It's debatable whether $flineN should be a local var, so you don't need to worry about doing a dummy $fline just to clear the row number left over by some other script.

Re: $flinen $fline(@name,wildtext,N,T,StartLine) [Re: maroon] #266437 08/12/19 01:28 PM
Joined: Oct 2017
Posts: 20
D
DooMaster Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Oct 2017
Posts: 20
I totally support this feature request and it would perfect for $fline() to start the search from a specific line.

EDIT: This is going to help coders to not use SQL for huge databases too.

Last edited by DooMaster; 08/12/19 03:20 PM.
Re: $flinen $fline(@name,wildtext,N,T,StartLine) [Re: DooMaster] #266438 08/12/19 10:46 PM
Joined: Jul 2006
Posts: 3,654
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,654
Good idea.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net