CreateSearchCriterion Method (Utility Control)
   Windows - Visual C++
   Description
   The CreateSearchCriterion method 
   creates a search string from the user-supplied attributes. This 
   search string is used to set the Headline control SearchCriteria property.
   Syntax
   long result = CreateSearchCriterion(long type, LPCTSTR inputString);
The CreateSearchCriterion syntax has these parts:
| Part | Description | 
| type | A long integer containing the type of the inputString parameter, as described in Remarks. | 
| inputString | A String containing the text for the search criterion as described in Remarks. | 
| result | Return value. A long integer containing 0 if successful and 1 if not. | 
   Remarks
   The value of the input string depends on the value of the type 
   parameter as follows:
| Type | Input String Contains: | nobjcode.bas | 
| 0 | Word(s) and/or phrase(s) | CCT_WORDS | 
| 1 | Ticker code(s) | CCT_CODE | 
| 2 | Subject codes(s) | CCT_SUBJECT | 
| 3 | Profile code(s) | CCT_PROFILE | 
| 4 | Feed code(s) | CCT_FEED | 
The resulting search string is stored in the SearchString property. The SearchString property is used to set the Headline control's SearchCriteria property.
See Also: SearchCriteria SearchString
Back to: Utility Methods