| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > BrowseClass > BrowseClass Methods >====== UpdateQuery (set default query interface) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[updatebuffer copy selected item from queue buffer to file buffer .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[updateresets copy reset fields to file buffer .htm|{{btn_next_n.gif|Next page}}]] | | || **UpdateQuery( **//querymanager//, [//casesensitive]//**)** {{blk2blue.jpg|blk2blue.jpg}} | **UpdateQuery** | Defines a default query interface for the BrowseClass object. | | //querymanager// | The label of the BrowseClass object's QueryClass object. See //QueryClass //for more information. | | //casesensitive// | A numeric constant, variable, EQUATE, or expression that indicates the case sensitivity of the query expression. If this parameter is omitted the query is case insensitive. | The **UpdateQuery **method defines a default query interface (dialog) for the BrowseClass object. {{tipbox.jpg|TipBox.jpg}} **You may use the UpdateQuery method in combination with the QueryClass.AddItem method to define a query interface that contains the displayed fields plus other queryable items.** **Implementation:** The UpdateQuery method sets the value of the Query property, then calls the QueryClass.AddItem method for each displayed field, so that each displayed field accepts filter criteria in the query dialog. **Example:** **QueryForm  QueryFormClass** **QueryVis   QueryFormVisual** **BRW1       CLASS(BrowseClass)** **Q           &CusQ** **           END** **CusWindow.Init PROCEDURE()** **  CODE** ** !open files, views, window, etc.** ** IF DefaultQuery** **  BRW1.UpdateQuery(QueryForm)** ** ELSE** **  BRW1.Query &= QueryForm** **  QueryForm.AddItem('UPPER(CUS:NAME)','','')** **  QueryForm.AddItem('UPPER(CUS:CITY)','','')** **  QueryForm.AddItem('CUS:ZIP_CODE','','')** ** END** ** RETURN Level:Benign** **See Also:     **[[queryclass overview.htm|Query]], [[additem add field to query .htm|QueryClass.AddItem]]