Click here for NewsObjects Overview
SearchViewID Property (Headline Control)
Windows - Visual C++


Description
The SearchViewID property returns or sets the view ID of the headline view that should be used to narrow the search.

Syntax
long value = GetSearchViewID();
void SetSearchViewID(long value);

The SearchViewID syntax has these parts:

 Part

Description

value

An integer containing the view ID of the headline view that should be used to narrow the search.

Remarks
Each time a search is performed in the Headline control, a view ID is assigned to the search. That ID is stored in the ViewID property. The headlines displayed are referred to as a "Headline View."

The SearchViewID property is used to open "narrowed" headline views. For a Full View (all headlines) this property should be left at the default value of 0. To display a "narrowed" headline view in the control, set the SearchCriteria property or the DateRange property to the desired search string, and set SearchViewID to the view ID of the headline view which should be searched.

The View ID of a Headline control is obtained from the ViewID property.

The Run property must be set to TRUE before any search will be performed.

See Also: DateRange Run Flags SearchCriteria Search Syntax ViewID

Back to: Headline Properties