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

Language: MioScript
Product: MioFactory


Syntax

var.array.count(Array)


Parameters

ARRAYArrayName of the variable containing the array.


Return value

Number.



Description

Returns the number of items in the array.

If the variable exists, the function always returns 1 or more, so it is not possible to know if the array is empty.

The function var.array.countEx makes it possible to know if the array is empty.




MioScript Sample Code

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

for(&ptr, 0, var.array.count(myArray))
    alert(&myArray[&ptr])
for.next