mooAWDetach(“ [aw name] “)


Detaches an analytic workspace. MooAWDetach does not perform an update.


Syntax


               mooawdetach("[aw name]")


Return Value


               BOOLEAN


Example


Public Sub mooAwDetach()

'Detach Analytic Workspaces


Dim boo As Boolean


If Not oregistered Then:   boo = regQ:


'Check Im connected if not connect

If Not o.connected Then

   boo = o.connect

   boo = o.connected

   Else

   boo = True

End If


If boo = True Then

 boo = o.mooAWDetach("GLOBAL.GLOBAL ")

Else

   Debug.Print "Unable to Connect"

   Debug.Print o.getlastmooerr

End If


End Sub