Is There Page Return Button


Recommended Posts

There isn't a built in function to do precisely that, but we added the push() and pop() functions on variables to make it easy to implement yourself.  Basically create two sequences, setPage() and popPage().  SetPage() looks like this:

 

function setPage(string newPage)

   global string pageStack // declare just in case

   pageStack.push(page.strCurrentPage)

   page.strCurrentPage = newPage

 

then popPage() looks like this:

 

page.strCurrentPage = pageStack.pop()

 

That's it.  Now whenever you want to change the page, call setPage(), and whenever you want to go back, call popPage().  

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.