From WikiChip
Difference between revisions of "mirc/identifiers/$fline"
(Created page with "{{mirc title|$fline Identifier}}'''$fline''' returns the number of the Nth line matching the expression in a window == Synopsis == <pre>$fline(win,expr,N,T)</pre> == Parame...") |
(→Parameters) |
||
Line 7: | Line 7: | ||
== Parameters == | == Parameters == | ||
* '''win''' - a channel/query/status or custom window | * '''win''' - a channel/query/status or custom window | ||
− | * '''expr''' - the expression to search | + | * '''expr''' - the expression to search, wildcard by default |
* '''N''' - The Nth matchting line, returns the total number of matching lines if N = 0 | * '''N''' - The Nth matchting line, returns the total number of matching lines if N = 0 | ||
* '''T''' - If T = 1, it references the listbox (nicklist in channel window), T = 2 means the expression is a regular expression, T = 3 means both 1 & 2 | * '''T''' - If T = 1, it references the listbox (nicklist in channel window), T = 2 means the expression is a regular expression, T = 3 means both 1 & 2 |
Revision as of 21:02, 17 October 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$fline returns the number of the Nth line matching the expression in a window
Synopsis
$fline(win,expr,N,T)
Parameters
- win - a channel/query/status or custom window
- expr - the expression to search, wildcard by default
- N - The Nth matchting line, returns the total number of matching lines if N = 0
- T - If T = 1, it references the listbox (nicklist in channel window), T = 2 means the expression is a regular expression, T = 3 means both 1 & 2
Properties
- .text return the line matched rather than the line number
Example
//echo -a $fline($chan(1),*mirc*)
Compatibility
Added: mIRC v5.4
Added on: 23 Jun 1998
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.