Platforms to show: All Mac Windows Linux Cross-Platform

Back to JavaStringMBS class.

JavaStringMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 15.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The private constructor.

JavaStringMBS.CopyString as string   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
This item is deprecated and should no longer be used. You can use StringValue instead.
Copies the content of the string into a Xojo string.

Returns "" on any error. The string returned is marked as being Unicode (16bit).
Deprecated in favor of StringValue property and auto conversion with Operator_Convert.

See also:

JavaStringMBS.CopyString(start as Integer, len as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Copies the content of the string into a Xojo string.
Example
dim s as string
dim js as JavaStringMBS // your java string

s=js.CopyString(0,1) // copies first character
s=js.CopyString(3,6) // copies six charcters from starting at the forth

Returns "" on any error. The string returned is marked as being Unicode (16bit).
For the first character to be the start use start=0.
For the first character to be the end use len=1 and start=0.
May crash on bad values for start and len.

See also:

JavaStringMBS.CopyStringUTF as string   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
This item is deprecated and should no longer be used. You can use StringValue instead.
Copies the content of the string into a Xojo string.

Returns "" on any error. The string returned is marked as being UTF8.
Deprecated in favor of StringValue property and auto conversion with Operator_Convert.

See also:

JavaStringMBS.CopyStringUTF(start as Integer, len as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Copies the content of the string into a Xojo string.

Returns "" on any error. The string returned is marked as being UTF8.
Start is 0 based.
May crash on bad values for start and len.

See also:

Some examples using this method:

JavaStringMBS.Operator_Convert as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 19.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Converts to a string automatically.

Do not call it, just assign JavaStringMBS to a string an Xojo calls this internally.

JavaStringMBS.UTFLength as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java MBS Java Plugin 4.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
This item is deprecated and should no longer be used. You can use StringValue instead.
The length of the string in bytes encoded as UTF8.

Returns 0 on any error.

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


The biggest plugin in space...