From WikiChip
Difference between revisions of "mirc/commands/breplace"
< mirc‎ | commands

(Example)
(See also)
Line 34: Line 34:
 
* [[List of identifiers - mIRC|List of identifiers]]
 
* [[List of identifiers - mIRC|List of identifiers]]
 
* {{mIRC|$bvar}}
 
* {{mIRC|$bvar}}
 +
* {{mIRC|$bfind}}
 
* {{mIRC|/bread}}
 
* {{mIRC|/bread}}
 
* {{mIRC|/bset}}
 
* {{mIRC|/bset}}
 
* {{mIRC|/btrunc}}
 
* {{mIRC|/btrunc}}
 +
* {{mIRC|/bcopy}}
 +
 
{{mIRC command list}}
 
{{mIRC command list}}
  
 
[[Category:MIRC commands]]
 
[[Category:MIRC commands]]

Revision as of 01:14, 6 July 2014

The /breplace command can be used to replace an ASCII value by another value in a binary variable. Multiple replacements are allowed.

Synopsis

/breplace &binvar <oldvalue> <newvalue> [oldvalue newvalue...]

Switches

None

Parameters

  • <oldvalue> - The old ASCII value to replaced
  • <newvalue> - The new ASCII value to replace the old one

Example

Alias Example {
  ;Create a binary variable set it to "Hello World"
  bset -t &Example 1 Hello World
 
  ;Replace e (ASCII value 101) with 3 (ASCII value 51)
  breplace &Example 101 51
 
  ;Echo our new string
  echo -a $bvar(&Example,1,$bvar(&Example,0)).text
}

The above example will output:

H3llo World

Compatibility

Added: mIRC v5.6

See also


[Expand]
v · d · e mIRC commands list