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

(Created page with "{{mirc title|$deltok Identifier}}'''$deltok''' deletes the Nth token from text. == Synopsis == <pre>$deltok(list,N-N2,C)</pre> == Paramters == * '''<list>''' - The list of...")
 
m
 
Line 37: Line 37:
  
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|deltok]]

Latest revision as of 13:56, 20 September 2017

$deltok deletes the Nth token from text.


Synopsis[edit]

$deltok(list,N-N2,C)

Paramters[edit]

  • <list> - The list of tokens (can be empty)
  • <N-N2> - The Nth to delete, if you pass $null here, the original list is returned, it doesn't return an error. N can be negative, so can N2. -1--2 means from the last token to the second last token.
  • <C> - The ascii number (or code point) of the character seperating the tokens

Properties[edit]

None

Example[edit]

//echo -a $deltok(a b,1,32)

Would display "b"

Compatibility[edit]

Added: mIRC v4.7
Added on: 09 Dec 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

$addtokcs $remtok $gettok $addtok $matchtok $wildtok $findtok $istok $instok $puttok $numtok $reptok $sorttok