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

Language: MioScript
Product: MioFactory


Syntax

var.get(VariableIndex, ItemIndex)


Parameters

INTVariableIndexIndex of the variable.
INTItemIndexOptional.
Index of the item to retrieve.


Return value

Value of the specified variable.



Description

Returns the value of a variable.

Instead of the name of the variable, this function requires the index of the variable.
You can browse the variables by index using var.count or var.getIndex.




MioScript Sample Code

&myVar = "Hello, World"

&value = var.get(var.getIndex(myVar))

alert(&value)