Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

RENAMELIST

Removes a list object from the hash list and replaces it under the new name.

Syntax

Parameters

LIST (required)
The new list name.

FROM (required)
The current list name. (The name you want to change.)

Description

The RENAMELIST tag removes a list object from the hash list and replaces it under the new name. Does not reset any internal list state (for example, the row number).

The column values of the current row of a list can be obtained using the syntax, List.colname where List is the name of the list and colname is the name of the column in the list.

Note

In the case of StringLists, the values can be obtained by using List.Item.

You can use the following attributes to return information about the list using the syntax, List.attname, where attname can be one of the following attributes:

#numRows
Number of rows in this list
#curRow
Current row in this list.
#moreRows
Boolean (true/false) to indicate whether there are more rows following the current row.
#numCols
Number of columns in this list.
@<colname>
Only used on lists that contain resultsets. Contents of the file in the specified column if the colname begins with "url".

For example, MyList.#numRows returns the number of rows in the list MyList. MyList.@urlheader retrieves the contents of the file specified by the column urlheader.

The value of a list is maintained during the processing of a page request. If the list contains a resultset, the resultset is maintained independently of a list that uses it.

errno

The possible values of errno include:

Value
Description
-504
List rename error.

Example

The following example generates a list named PortalArticles and then changes the list's name from PortalArticles to Articles:

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.