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.
Bytes Object->Replace(Find Value, Replace Value)
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')
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments