StringByteLength()
Posted: Thu Jan 29, 2026 9:15 pm
see https://www.purebasic.com/documentation ... ength.html
But it is not explained which of them the default value is, if this parameter is omitted when calling StringByteLength().
According to the following code
the default value is #PB_Unicode.
However, this should be documented in the help.
For the optional 'Format' parameter, three possible values are mentioned.Syntax
Result = StringByteLength(String$ [, Format])
But it is not explained which of them the default value is, if this parameter is omitted when calling StringByteLength().
According to the following code
Code: Select all
; PB 6.30
Debug StringByteLength("abc") ; -> 6
Debug StringByteLength("abc", #PB_Unicode) ; -> 6
Debug StringByteLength("abc", #PB_Ascii) ; -> 3
Debug StringByteLength("abc", #PB_UTF8) ; -> 3However, this should be documented in the help.