String.Bytes
From Xojo Documentation
Method
Returns the number of bytes in the specified string.
Syntax
result=stringVariable.Bytes
Part | Type | Description |
---|---|---|
result | Integer | The number of bytes in string. |
stringVariable | String | Any variable of type String. |
Notes
Bytes treats string as a series of bytes, rather than a series of characters. It should be used when string represents binary data. If you need to know the number of characters in string rather than the number of bytes, use the Length function.
Examples
This example uses the Bytes function to return the number of bytes in a string.
See Also
String for a complete list of functions.