API Guide
2-222 API Functions 601355 Rev A
96 VS_CriteriaGroup_SetFields (
grouph,
97 VSID_CRITERIA_HANDLE_ENTRY, i,
criteriah,
98 VSID_ENDFIELD );
99 }
100 /* if it failed, destroy the criteria
group handle */
101 if ( rc == VSE_FALSE )
102 {
103 /* criteria group will destroy any
*/
104 /* criteria and their expressions
*/
105 /* for us, so the only thing that
is really */
106 /* needed here is a call to */
107 /* VS_CriteriaGroup_Destroy. */
108 /* This is written out the ’long
way’ for */
109 /* documentation purposes. First,
get the */
110 /* number of criteria */
111 VS_CriteriaGroup_GetFields(grouph
,
112 VSID_NUMBER_ENTRIES,
&numcrit,
113 VSID_ENDFIELD);
114 for (i = 0; i < numcrit; i++)
115 {
116 /* get a criteria handle */
117 VS_CriteriaGroup_GetFields(grouph
,
118 VSID_CRITERIA_HANDLE_ENTRY,
i, &criteriah,
119 VSID_ENDFIELD);
120 /* get the number of
expressions */
121 VS_Criteria_GetFields(criteriah,