CloseFolder method

The active folder is closed.

Method
short CloseFolder( )
Description
The method causes all open documents associated with the folder to be closed. If any other folders are open, one of them becomes the active folder. If more than one other folder is open, the container application should invoke the ActivateFolder method to specify the folder which is to be active.
Return Value
Refer to return codes.
See Also
OpenFolder and CloseAllFolders methods

C/C + +

 CArsOle * pArsCtrl;
 short rc;

   .
   .

  rc = pArsCtrl->CloseFolder( );
  if ( rc != ARS_OLE_RC_SUCCESS )
    ERROR;

   .
   .

Visual Basic

Dim rc As Integer

 .
 .

rc = ArsOle.CloseFolder()
If rc <> ARS_OLE_RC_SUCCESS Then
   MsgBox "ERROR"
   End
End If

 .
 .