StringHandle: JoinDataMBS

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

JoinDataMBS(blocks() as memoryblock) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS DataTypes Plugin 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Joins an array of memoryblocks in new string.
Example
dim s() as MemoryBlock

// make memoryblock with a space character
dim m as MemoryBlock = "Hello"

s.Append m
s.Append m
s.Append m

// now join
dim r as string = JoinDataMBS(s)

// define to be ASCII:
r = DefineEncoding(r, encodings.ASCII)

// and show
MsgBox r

Returned string has no encoding defined.
Raises OutOfMemoryException in case of low memory.

See also:

JoinDataMBS(strings() as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS DataTypes Plugin 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Joins an array of strings in new string.
Example
dim s() as string

s.Append "Hello"
s.Append " "
s.Append "World"

// now join
dim r as string = JoinDataMBS(s)

// define to be ASCII:
r = DefineEncoding(r, encodings.ASCII)

// and show
MsgBox r

Returned string has no encoding defined.
Raises OutOfMemoryException in case of low memory.

See also:

JoinDataMBS(values() as Variant) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS DataTypes Plugin 14.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Joins an array of variants in new string.
Example
dim s() as Variant

// make memoryblock with a space character
dim m as new MemoryBlock(1)
m.Int8Value(0) = 32

s.Append "Hello"
s.Append m
s.Append "World"

// now join
dim r as string = JoinDataMBS(s)

// define to be ASCII:
r = DefineEncoding(r, encodings.ASCII)

// and show
MsgBox r

Variants can be memoryblocks or strings or normal objects which can give stringValue.
Returned string has no encoding defined.
Raises OutOfMemoryException in case of low memory.

See also:

Blog Entries

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


💬 Ask a question or report a problem