GetListIndex

The GetListIndex method retrieves the index number of the current item in the Content Linking List file.

Syntax

NextLink.GetListIndex( listURL )

 

Parameters
listURL
The location of the Content Linking List file.
Return Values

The GetListIndex method returns an integer index value specifying the current page's position on the file list. The index number of the first item is 1. This method returns 0 if the current page is not in the Content Linking List file.

Example

A more complete example is at the bottom of Content Linking Component.

--- NextLink_GetListIndex.asp ---

<%
  Dim objNextLink
  Set objNextLink = Server.CreateObject("MSWC.NextLink")   
  Index = objNextLink.GetListIndex("/data/nextlink.txt") 
  If 0 = Index Then
    Response.Write "This page is not listed in your Content Linking List file.<BR>"
  Else
    Response.Write "This page is number " & Index & " in your Content Linking List File.<BR>" 
  End If
%>
 
See Also

GetListCount


© 1997-2001 Microsoft Corporation. All rights reserved.