Platforms to show: All Mac Windows Linux Cross-Platform
StringHandleMBS.BlockLen as Int64
Function:
The size of the memory currently used for this class.
Notes:
This value increases by BlockSize if more memory is needed.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
This value increases by BlockSize if more memory is needed.
(Read only property)
StringHandleMBS.BlockSize as Int64
Function:
The size of the blocks to allocate for storing the data.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read and Write property)
StringHandleMBS.Encoding as Int64
Function:
The encoding to use for returned strings.
Notes:
Only useful on Xojo 4.5 and newer.
Some example values for encoding:
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
Only useful on Xojo 4.5 and newer.
Some example values for encoding:
MacRoman | 0 | Also for ASCII or binary data used. |
WindowsLatin1 | &h0500 | ANSI codepage 1252 |
ISOLatin1 | &h0201 | ISO 8859-1 |
NextStepLatin | &h0B01 | NextStep encoding |
Unicode | &h0100 | 16 bit Unicode |
UTF8 | &h08000100 | 8 bit Unicode |
Invalid | &hFFFFFFFF | (Binary) |
Invalid | &hFFFF | (Binary) |
StringHandleMBS.Len as Int64
Function:
Returns the len in bytes of the stored string.
Notes: (Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read only property)
StringHandleMBS.LenUTF8 as Int64
Function:
Queries length of text in UTF-8 encoded characters.
Example:
Notes:
Returns incorrect values if string is not UTF-8!
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 19.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim s As String = "Hello öäü!"
Dim d As New StringHandleMBS(s)
MsgBox Str(d.Len)+" bytes, "+Str(d.LenUTF8)+" characters"
Returns incorrect values if string is not UTF-8!
(Read only property)
StringHandleMBS.ReplaceCount as Int64
Function:
After a call to one of the Replace functions the number of items replaced.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read and Write property)
StringHandleMBS.ValidASCII as Boolean
Function:
Whether this string handle contains valid ASCII text.
Notes: (Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: (Read only property)
StringHandleMBS.ValidUTF8 as Boolean
Function:
Whether this string handle contains valid UTF-8 text.
Example:
Notes:
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | String | MBS DataTypes Plugin | 19.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim s As New StringHandleMBS
s.Add "Hello World"
Dim validUTF8a As Boolean = s.ValidUTF8
// now make invalid
s.AddByte 222
Dim validUTF8b As Boolean = s.ValidUTF8
Break
The items on this page are in the following plugins: MBS DataTypes Plugin.

Links
MBS Xojo Chart Plugins