Lasso Soft Inc. > Home

[Bytes->GetRange]

[Bytes->GetRange] returns a sequence of bytes from a byte stream as a string. The byte stream is not modified by this tag so it can be used to peek ahead.

The first parameter specifies the position at which to start. The second optional parameter specifies the number of bytes to return. If the second parameter is not specified the remainder of the byte stream is returned.

  • Syntax
  • Parameters
<?LassoScript
Variable: 'myString' = $ByteStream->(GetRange: 10);
?>

<?LassoScript
Variable: 'myString' = $ByteStream->(GetRange: 10, 10);
?>
Required Parameters
Position The starting byte to return.
Optional Parameters
Length The number of bytes to return.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 92.

Tag Link [Bytes->GetRange] Category Bytes
Type Member Data Source Any
Support Preferred Version 7.0
Output Type Bytes Security None
Implementation Sets Lasso 7.0

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