flatnotebook

BlitzMax Modules Forums/Brucey's Modules/flatnotebook

I'm trying to get the text of a page as it's being closed, however using this:
	Function OnPageClosing(event:wxEvent) 
	  Local fnb:wxFlatNotebook = mainFrame.book
		  Notify fnb.GetPageText(fnb.GetPageIndex(fnb.GetCurrentPage())) 
		
	End Function

I get a number from the notify command, why?

EDIT: is there a simpler way to get the text of a tab on a flatnotebook?