Function Reference

_OL_ViewCreate

Creates a new view for the specified folder.

#Include <OutlookEX_GUI.au3>
_OL_ViewCreate($oOL, $sView, $vFolder[, $iType = Default[, $iSaveOption = Default]])

 

Parameters

$oOL Outlook object returned by a preceding call to _OL_Open()
$sView Name of the new view
$vFolder Folder object as returned by _OL_FolderAccess or full name of folder
$iType [optional] The type of the new view. Can be any of the OlViewType enumeration (default = $olTableView)
$iSaveOption [optional] Specifies the permissions of the new view. Can be any of the OlViewSaveOption enumeration (default = $olViewSaveOptionThisFolderOnlyMe)

 

Return Value

Success: Object of the created view
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 creating the new view. @extended is set to the COM error code
    5 - View already exists or an error occurred. @extended is set to the COM error code (if any)
    6 - Error saving the new view. @extended is set to the COM error code

 

Remarks

None.

 

Related