Function Reference

_OL_ViewPropertySet

Modifies properties of a view.

#Include <OutlookEX_GUI.au3>
_OL_ViewPropertySet($oOL, $vView, $vFolder, $aProperties)

 

Parameters

$oOL Outlook object returned by a preceding call to _OL_Open()
$vView Index, name or object of the view to be modified
$vFolder Folder object as returned by _OL_FolderAccess or full name of folder. Has to be specified when $vView is not a view object, els the parameter is ignored
$aProperties One dimensional zero-based array holding the properties to set based on the view type. Format: propertyname=propertyvalue

 

Return Value

Success: Object of the 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 - View does not exist or an error occurred. @extended is set to the COM error code (if any)
    5 - Invalid format of property in $aProperties. @extended is set to the zero-based index of the property in error
    6 - Invalid property name for the view type. @extended is set to the zero-based index of the property in error
    7 - Error saving the new view. @extended is set to the COM error code
    8 - Error setting the property. @extended is set to the zero-based index of the property in error

 

Remarks

Empty rows in $aProperties are ignored

 

Related