LPCSTR CCFXStringSet::GetString(int iIndex)
Retrieves the string located at the passed index (index values are 1-based).
Returns the string located at the passed index.
Parameter | Description |
---|---|
iIndex |
Index of string to retrieve |
The following example demonstrates GetString
with CCFXStringSet::GetCount to iterate over a string set and write the contents of a list back to the user:
int nNumItems = pStringSet->GetCount() ;
for ( int i=1; i<=nNumItems; i++ )
{
pRequest->Write( pStringSet->GetString( i ) ) ;
pRequest->Write( "<BR>" ) ;
}