ComponentOne Query 8.0
AddItem Method

Syntax

C1QueryFrame.AddItem(ParentID, ConditionType)

Notes

Method applies to C1QueryFrame control.

Arguments

ParentID is unique ID of the parent item (0 for root).

ConditionTypeis one of the ConditionTypeEnum constants defining the type of the newly created item.

Return Value

The unique ID of the newly created item.

Description

This method creates a new query item and adds it to the C1QueryFrame control as the last child of the specified parent. To add an item to the root, specify ParentID=0.

Possible values of the ConditionTypeargument are:

c1qCondElementarySimple = 0 - elementary simple condition.

c1qCondElementaryAdvanced = 1 - elementary advanced condition.

c1qCondComplex = 2 - complex condition.

After adding, removing and modifying query items, you must call the Render method to update display.

See Also

Accessing and Modifying Query Items

Clear

DeleteItem

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback