StringByteLength()
Syntax
Result = StringByteLength(String$ [, Format])Description
Returns the number of bytes required to store the string in memory in the given format in bytes. 'Format' may be #PB_Ascii, #PB_UTF8 or #PB_Unicode. If 'Format' is not specified, the mode of the executable (unicode or ascii) is used.
Note: The number of bytes returned does not include the terminating Null-Character of the string. The size of the Null-Character is 1 byte for Ascii and UTF8 mode and 2 bytes for Unicode mode.Example:
Debug StringByteLength("ä", #PB_UTF8) ; will display 2
Supported OS
All