Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.GetList
Retrieves the
IListobject for the given list name.This method does not create a list; it retrieves an existing list from among those known to Sites. There are two variants of this method:
- GetList (Variant 1) , which retrieves a specified
IListand sets theIList's cursor to the first position.
- GetList (Variant 2) , which retrieves a specified
IListand can maintain the current position in the list.
ICS.GetList
Retrieves the
IListobject for the given list name.Syntax
public IList GetList(String listname)Parameters
listname- The name of the list.
Description
The
GetListmethod retrieves theIListobject for the given list name. This method does not create a list, it retrieves an existing list from among those known to Sites. By default, cursor is set to first position in the list.Returns
The requested
IList, or null if it does not exist.Example
The following code gets a list whose name is passed in the variable
theListName:
String sListName = ics.GetVar("theListName"); IList theList = ics.GetList(sListName);See Also
ICS.GetList
Retrieves the
IListobject for the given list name.Syntax
public IList GetList(String listname, Boolean reset)Parameters
listname- The name of the list.
reset- A value of
truesets the cursor to the first position in the list. A value offalsemaintains the current position in the list.
Description
The
GetListmethod retrieves theIListobject for the given list name. This method does not create a list, it retrieves an existing list from among those known to Sites.Returns
The requested
IList, or null if it does not exist.Example
The following code gets a list whose name is passed in the variable
theListName:
String sListName = ics.GetVar("theListName"); IList theList = ics.GetList(sListName, true);See Also
CopyList , RegisterList , RenameList
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.