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.


The biggest plugin in space...