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

JoinDataMBS(blocks() as memoryblock) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS DataTypes Plugin 14.2 Yes Yes Yes Yes No
Function: 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
Notes:
Returned string has no encoding defined.
Raises OutOfMemoryException in case of low memory.

See also:

Feedback, Comments & Corrections

JoinDataMBS(strings() as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS DataTypes Plugin 14.2 Yes Yes Yes Yes No
Function: 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
Notes:
Returned string has no encoding defined.
Raises OutOfMemoryException in case of low memory.

See also:

Feedback, Comments & Corrections

JoinDataMBS(values() as Variant) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS DataTypes Plugin 14.2 Yes Yes Yes Yes No
Function: 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
Notes:
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:

Feedback, Comments & Corrections

JoinStringMBS(strings() as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS DataTypes Plugin 14.2 Yes Yes Yes Yes No
Function: Joins an array of strings in new string.
Example:
dim s() as string

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

dim r as string = JoinStringMBS(s)

MsgBox r
Notes:
Converts all strings if necessary into UTF-8. If you want to join them as they are, please use JoinDataMBS.
Raises OutOfMemoryException in case of low memory.

See also:

Feedback, Comments & Corrections

JoinStringMBS(values() as Variant) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method String MBS DataTypes Plugin 14.2 Yes Yes Yes Yes No
Function: Joins an array of strings in new string.
Example:
dim s() as Variant

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

dim r as string = JoinStringMBS(s)

MsgBox r
Notes:
Converts all strings if necessary into UTF-8.
Raises OutOfMemoryException in case of low memory.

See also:

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins