if vartype(.oToolbar) = "O" if .lHideDataEntryButtons .oToolbar.HideDataEntryButtons() else .oToolbar.ShowDataEntryButtons() endif if .lHideNavigationButtons .oToolbar.HideNavigationButtons() else .oToolbar.ShowNavigationButtons() if not empty(.cNavigationGridName) local loGrid loGrid = evaluate(.cNavigationGridName) && This property holds a full path to the grid m.loGrid.RefreshToolbars() endif endif if type('thisform.oToolBar.cmdClose') = 'O' .oToolbar.cmdClose.enabled = .t. && Make sure that close button is always enabled endif endif