Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

SQLStringMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class SQL MBS SQL Plugin 9.3 Yes Yes Yes Yes No
Function: The class for strings in this plugin.
Example:
dim s as new SQLStringMBS("Hello äöü")

MsgBox "Characters: "+str(s.GetLength)+" Bytes: "+str(s.GetBinaryLength)

dim a as string= s.CopyBinaryData
dim b as string= s.CopyText

MsgBox a // RB shows garbage as it tries to display bytes as UTF8 which does not work
MsgBox b // displays correct
Notes: A string can be text (with text encoding) or bytes (raw binary data).

Feedback, Comments & Corrections

Sub classes:

Some methods using this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS SQL Plugin.


SQLPreparedStatementMBS   -   SQLUnsupportedExceptionMBS




Links
MBS Xojo tutorial videos