detach( )
Breaks links between a toolbar and a form.
Syntax
<toRef>.detach(<oRef>)
<toRef>
An object reference to the toolbar.
<oRef>
An object reference to the form.
Property of
ToolBar
Description
Along with attach( ), this method lets you manage toolbars in your application by connecting and disconnecting the objects as needed.
Typically, however, a toolbar is detached as part of a form’s cleanup routines, as is done in the following example:
function close
private sFolder
sFolder = this.restoreSet.folder
CLOSE FORMS
SET DIRECTORY TO &sFolder.
this.toolbars.appbar.detach( _app.framewin )
with (_app)
framewin.text := this.restoreSet.frameText
speedbar := this.restoreSet.speedBar
app := null
endwith
shell( true, true )
return