| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Crystal8 Class >====== HasSearchButton (display search button on report preview) ====== | [[hasrefreshbutton display refresh button on report preview .htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[haszoomcontrol display zoom control on report preview .htm|{{btn_next_n.gif|Next page}}]] | | || **HasSearchButton** (| //hassearchbutton// |) ** ** **HasSearchButton**** Allows a search button on the report preview window.** //hassearchbutton// An integer constant, variable, EQUATE, or expression that specifies whether a search button will appear on the reports preview window. A value of one (1) displays the search button; a value of zero (0) does not display the search button. The HasSearchButton method is used to optionally display a search button on the report preview window. This method returns a BYTE representing the value of //hassearchbutton//. **Return Data Type:** BYTE **Example:** **oCrystal8.HasSearchButton(1)**