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