The Exists() function in the syListViewObj form verifies whether a specific view for a list has been defined.
Exists(product_ID, list_ID, view_ID)
• product_ID – The ID of the dictionary that contains the list for which the view is being queried.
• list_ID – An integer specifying the ID of the list for which a view is being queried.
• view_ID – An integer specifying the view being queried. Use the constant LIST_PRIMARYVIEWID to indicate the primary view for the list.
A boolean. The value true indicates the view has been defined for the list, while false indicates it has not.
Use this function when creating custom views to determine whether views for the specific list have already been created.