From WikiChip
Difference between revisions of "mirc/identifiers/$fline"
< mirc‎ | identifiers

(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...")
 
m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{mirc title|$fline Identifier}}'''$fline''' returns the number of the Nth line matching the expression in a window
 
{{mirc title|$fline Identifier}}'''$fline''' returns the number of the Nth line matching the expression in a window
 +
 +
'''Note''': $fline strips lines from control code before matching
  
  
 
== Synopsis ==
 
== Synopsis ==
<pre>$fline(win,expr,N,T)</pre>
+
<pre>$fline(win,expr,N,T,S)</pre>
  
 
== 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, {{mirc|wildcard}} by default
* '''N''' - The Nth matchting line, returns the total number of matching lines if N = 0
+
* '''N''' - The Nth matching 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
 +
* '''S''' - The search will start from the starting line number S, helping speeding up the search, you must provide the N and T parameter.
  
 
== Properties ==
 
== Properties ==
Line 21: Line 24:
  
 
== See Also ==
 
== See Also ==
{{mIRC|$sline}}
+
{{collist
{{mIRC|$line}}
+
|count = 1
{{mIRC|$window}}
+
|style = width: 100%; display: inherit;
 +
|
 +
* {{mIRC|$flinen}}
 +
* {{mIRC|$line}}
 +
* {{mIRC|$sline}}
 +
* {{mIRC|$window}}
 +
}}
  
 
[[Category:mIRC identifiers]]
 
[[Category:mIRC identifiers]]

Latest revision as of 12:54, 28 December 2019

$fline returns the number of the Nth line matching the expression in a window

Note: $fline strips lines from control code before matching


Synopsis[edit]

$fline(win,expr,N,T,S)

Parameters[edit]

  • win - a channel/query/status or custom window
  • expr - the expression to search, wildcard by default
  • N - The Nth matching 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
  • S - The search will start from the starting line number S, helping speeding up the search, you must provide the N and T parameter.

Properties[edit]

  • .text return the line matched rather than the line number

Example[edit]

//echo -a $fline($chan(1),*mirc*)

Compatibility[edit]

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.


See Also[edit]