LeftB Function
Returns the first n bytes in a source String.
Syntax
result = LeftB( source, count )
result = stringVariable.LeftB( count )
Parameters | ||
source |
The source string from which to get the bytes. |
|
count |
The number of bytes you wish to get from source. If count is greater than the number of bytes in source, all bytes are returned. |
Notes
The LeftB function returns bytes from the source string starting from the left side (as the name implies).
If you need to read characters rather than bytes, use the Left function.
Example
This example uses the LeftB function to return the first 5 bytes from a string.
See Also