Pagination can be used to help split up your long content into shorter, easier to understand blocks, or to navigate throug a long table. An event pagination_PageChanged(oldPage, newPage) will be raised it the user click on the control.

Dim pagination As ABMPagination
	pagination.Initialize(page, "pagination", 10, True, True, "")
	pagination.SetTotalNumberOfPages(20)
	
	page.Cell(2,1).AddComponent(pagination)

In the event you can declare the changes in the pages (like setting new table content). You must set the new active page with SetActivePage() and do a refresh. You can also change the new number of pages with the SetTotalNumberOfPages() method.

Sub pagination_PageChanged(OldPage As Int, NewPage As Int)
	// do your stuff
	Dim pagination As ABMPagination = page.Component("pagination")
	pagination.SetActivePage(NewPage) // IMPORTANT!
	pagination.Refresh // IMPORTANT!
End Sub