Lasso Soft Inc. > Home

[ bytes->replace ]

Method

Replaces all instances of a value within a bytes stream with a new value. Requires two parameters. The first parameter is the value to find, and the second parameter is the value to replace the first parameter with.

  • Syntax
Bytes Object->Replace(Find Value, Replace Value)
Examples
  • Beginner

To find and replace values in a byte stream:

Use the [Bytes->Replace] method. The following example finds the string Blue and replaces with the string Green within the bytes stream.

Code

local(Bytes = Bytes('Blue Red Yellow'))
#Bytes->Replace('Blue', 'Green')

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft