Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.SetVar
Sets a Content Server variable.
This method has three variants:
- SetVar (Variant 1) : Sets the value of a Content Server variable to a string.
- SetVar (Variant 2) : Sets the value of a Content Server variable to an integer.
- SetVar (Variant 3) : Sets the value of a Content Server variable to an
FTValList
.
ICS.SetVar
Sets the value of a ContentServer 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 ContentServer 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 ContentServer 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 ContentServer 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 ContentServer 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 Content Server 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 > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.