CCFXStringSet::GetCount  
 
 
int CCFXStringSet::GetCount(void)

Gets the number of strings contained in the string set. This value can be used along with the GetString function to iterate over the strings in the set (when iterating, remember that the index values for strings in the list begin at 1).

Returns the number of strings contained in the string set.

 
 
  Example  
 

The following example demonstrates using GetCount along with 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>" ) ;
}


 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.