newntui/commonresources/src/filterwizard.cpp
//----------------------------------------------------------------------------------------
// This function adds the token to the to the token array.
// Returns TRUE if the token was added successfully or FALSE if the same token
// is already in the string.
//----------------------------------------------------------------------------------------
This function adds the token to the to the token array.
Returns TRUE if the token was added successfully or FALSE if the same token
is already in the string.
This function adds the token to the to the token array . Returns TRUE if the token was added successfully or FALSE if the same token is already in the string .
BOOL CFilterWizard::AddToken(CToken& token) {
register i;
	for(i=0;i<m_TokensTable.GetSize();i++) if(token==m_TokensTable[i]) return FALSE;
	m_TokensTable.Add(token);
	return TRUE;
}
BOOL CFilterWizard :: AddToken ( CToken & token ) { register i ; for ( i = 0 ; i < m_TokensTable . GetSize ( ) ; i ++ ) if ( token == m_TokensTable [ i ] ) return FALSE ; m_TokensTable . Add ( token ) ; return TRUE ; }
This function adds the token to the to the token array.
This function adds the token to the to the token array .
// Check for the same token in the array