Function Reference

_OL_ViewDelete

Deletes a view from the specified folder.

#Include <OutlookEX_GUI.au3>
_OL_ViewDelete($oOL, $vView[, $vFolder = Default] )

 

Parameters

$oOL Outlook object returned by a preceding call to _OL_Open()
$vView Index, name or object of the view to be deleted
$vFolder [optional] Folder object as returned by _OL_FolderAccess or full name of folder. Has to be specified when $vView is not a view object

 

Return Value

Success: 1
Failure: Returns 0 and sets @error:
    1 - $vFolder has not been specified
    2 - Error accessing the specified folder. See @extended for errorcode returned by GetFolderFromID
    3 - Error accessing the folders views. @extended is set to the COM error code
    4 - Error deleting the view. @extended is set to the COM error code
    5 - View does not exist or an error occurred. @extended is set to the COM error code (if any)

 

Remarks

None.

 

Related