From WikiChip
$deltok Identifier - mIRC
< mirc‎ | identifiers
Revision as of 11:04, 18 September 2017 by 83.204.218.38 (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$deltok deletes the Nth token from text.


Synopsis

$deltok(list,N-N2,C)

Paramters

  • <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

None

Example

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

Would display "b"

Compatibility

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

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