Home > Contents > Index >
ICS.SetVar
Sets a Sites variable.
This method has three variants:
- SetVar (Variant 1) : Sets the value of a Sites variable to a string.
- SetVar (Variant 2) : Sets the value of a Sites variable to an integer.
- SetVar (Variant 3) : Sets the value of a Sites variable to an
FTValList
.Note: This method can not be use to set a variable to
null
. Use RemoveVar instead.
ICS.SetVar
Sets the value of a Sites variable.
Syntax
public void SetVar(String name, String value)Parameters
name
- The name of the variable to create or set.
value
- The value of the variable.
Description
The
SetVar
method sets the value of a Sites variable. If the variable does not exist, it will be created. This method provides functionality similar to the XMLSETVAR
tag.Example
The following example creates a variable named
weather
and set its value toSunny
:
ics.SetVar("weather", "Sunny");See Also
ICS.SetVar
Sets the value of a Sites variable.
Syntax
public void SetVar(String name, Int value)Parameters
name
- The name of the variable to create or set.
value
- The value of the variable.
Description
The
SetVar
method sets the value of a Sites variable. If the variable does not exist, it will be created. This method provides functionality similar to the XMLSETVAR
tag.Example
The following example creates a variable named
weather
and set its value toSunny
:
ics.SetVar("weather", "Sunny");See Also
ICS.SetVar
Sets the value of a Sites variable.
Syntax
public void SetVar(String name, FTVal value)Parameters
name
- The name of the variable to create or set.
value
- The value of the variable.
Description
The
SetVar
method sets the value of a Sites variable. If the variable does not exist, it will be created. This method provides functionality similar to the XMLSETVAR
tag.Example
The following example creates a variable named
weather
and set its value toSunny
:
ics.SetVar("weather", "Sunny");See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.