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

Language: MioScript
Product: MioFactory


Syntax

var.set(VariableIndex, ItemIndex, Value)


Parameters

INTVariableIndexIndex of the variable.
INTItemIndexOptional.
Index of the item to retrieve.
STRINGValueValue of the item, or of the variable if the item is null or not specified.


Return value

Value of the specified variable.



Description

Set the value of a variable.

Important: The function fails if the variable do not exists.
You must create the variable as follow before you can set the value with var.set.

&myVariable = ""





MioScript Sample Code

&myVar = ""

var.set(var.getIndex(myVar), null, "Hello, World")

alert(&myVar)