Whatever message this page gives is out now! Go check it out!
virtual int AddString( LPCSTR lpszString ) | :AddString adds a string to the end of a list. |
virtual int GetCount() | :GetCount gets the number of strings contained in a list. |
virtual LPCSTR GetString( int iIndex ) | :GetString gets the string located at the passed index. |
virtual int GetIndexForString( LPCSTR lpszString ) | :GetIndexForString gets the index for the passed string. |
int CCFXStringSet::AddString(LPCSTR lpszString) |
| Parameter | Description |
lpszString | String to add to the list |
CCFXStringSet* pSet = pRequest->CreateStringSet() ; int iRed = pSet->AddString( "Red" ) ; int iGreen = pSet->AddString( "Green" ) ; int iBlue = pSet->AddString( "Blue" ) ; |
int CCFXStringSet::GetCount(void) |
int nNumItems = pStringSet->GetCount() ; for ( int i=1; i<=nNumItems; i++ ) { pRequest->Write( pStringSet->GetString( i ) ) ; pRequest->Write( "<BR>" ) ; } |
int CCFXStringSet::GetIndexForString(LPCSTR lpszString) |
| Parameter | Description |
lpszString | String to search for |
CCFXStringSet* pAttribs = pRequest->GetAttributeList() ; int iDestination = pAttribs->GetIndexForString("DESTINATION") ; if ( iDestination == CFX_STRING_NOT_FOUND ) { pRequest->ThrowException( "DESTINATION attribute not found." "The DESTINATION attribute is required " "by this tag." ) ; } |
LPCSTR CCFXStringSet::GetString(int iIndex) |
| Parameter | Description |
iIndex | Index of string to retrieve |
int nNumItems = pStringSet->GetCount() ; for ( int i=1; i<=nNumItems; i++ ) { pRequest->Write( pStringSet->GetString( i ) ) ; pRequest->Write( "<BR>" ) ; } |