User Guide
310 Developing Web Applications with ColdFusion
CCFXStringSet::GetString
LPCSTR CCFXStringSet::GetString(int
iIndex
)
Retrieves the string located at the passed index (note that index values are 1-based).
Returns the string located at the passed index.
iIndex
Index of string to retrieve.
Example
The following example demonstrates using GetString along with
CCFXStringSet::GetCount 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>" ) ;
}