Adobe ColdFusion 8

CCFXStringSet::GetCount

Syntax

int CCFXStringSet::GetCount(void)

Description

Gets the number of strings in a string set. The value can be used with CCFXStringSet::GetString to iterate over the strings in the set (recall that the index values for strings in the list begin at 1).

Returns

Returns the number of strings contained in the string set.

Example

The following example demonstrates using GetCount with CCFXStringSet::GetString to iterate over a string set and write the contents of the list back to the user:

int nNumItems = pStringSet->GetCount() ;
    for ( int i=1; i<=nNumItems; i++ )
    {
                        pRequest->Write( pStringSet->GetString( i ) ) ;
                        pRequest->Write( "<BR>" ) ;
    }