From WikiChip
Editing mirc/identifiers/$cb

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 3: Line 3:
  
 
== Synopsis ==
 
== Synopsis ==
<source lang="mIRC">
+
<source lang="mIRC">$cb[(N,[u])[.len]]</source>
$cb
 
$cb(N,[u],[%var|&binvar])</source>
 
  
 
== Parameters ==
 
== Parameters ==
* '''N''' - The Nth {{mIRC|$crlf}} delimited line in the clipboard, you can use -1 to get the full clipboard with newline included.
+
* '''N''' - The Nth item in the clipboard to retrieve specific data for
 
* '''u''' - Return the text encoded to utf8
 
* '''u''' - Return the text encoded to utf8
* '''%var|&binvar''' - You can pass a variable or a binary variable to be filled instead of being returned by $cb, using a binvar allow you to handle more than the current line lenght limit of 8292 char.
 
  
 
== Properties ==
 
== Properties ==
* '''.len''' - returns the length of the Nth line
+
{{ArgsList
* '''.utflen''' - returns the len of the text encoded to utf8, same as .len with the 'u' parameter
+
| len | Returns length information regarding clipboard items
* '''.utf''' - This property appears in the source code but does not work, it looks like the source code is not checking the proper variable handling the prop name. It would naturally return the text encoded to utf8
+
}}
 
 
 
 
  
 
== Example ==
 
== Example ==
Line 47: Line 42:
  
 
== Compatibility ==
 
== Compatibility ==
{{mIRC compatibility|3.5}}
+
{{mIRC compatibility|6.2}}
  
 
== See Also ==
 
== See Also ==

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)