Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | var.array.clear 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.clear

Language: MioScript
Product: MioFactory


Syntax

var.array.clear(Array, index)


Parameters

ARRAYArrayName of the variable containing the array.
INTindexOptional.
First item to be removed. If not specified, all the items are removed.


Return value

No value is returned.


Description

Clear an array.

If the second parameter is set to null or not specified, the function remove all the items from the array.

If the second parameter is specified, it is possible to remove the latest items. This is useful to limit the size of the array.




MioScript Sample Code

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

var.array.remove(myArray, 2)

alert(&myArray[])