Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | var.array.getString SEARCH    

  Functions
var.array.clear
var.array.count
var.array.countEx
var.array.getString
var.array.insert
var.array.remove
var.array.sort
var.count
var.dec
var.exists
var.free
var.get
var.getIndex
var.getName
var.inc
var.set

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
var.array.getString

Language: MioScript
Product: MioFactory


Syntax

var.array.getString(Array, Separator)


Parameters

ARRAYArrayName of the variable containing the array.
STRINGSeparatorOptional.
String separator.


Return value

String.



Description

Returns the concatenation of each item of the array.
If specified, the separator is added between each item.

This function is equivalent to str.implode.

See also: str.explode.




MioScript Sample Code

&myArray[] = "Item 1^^Item 2^^Item 3"

&myString = var.array.getString(myArray, "<BR>")

alert(&myString)

// The result is: Item 1<BR>Item 2<BR>Item 3