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