The GetViewID() function in the syListObj form retrieves the ID of the view for the list currently being displayed.
GetViewID(list_object)
• list_object – The list object composite that manages the state information for the list.
A long integer containing the view ID.