[Xerte] displaying variable info in text icon
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Thu Mar 4 09:28:14 GMT 2010
If FWICON.currentPage < FWICON.pages.length then
Go to next
Else
Go to Main Menu
This is pseudo code, right?
if (myFW.currentPage < myFW.pages.length - 1){
myFW.nextPage()
} else {
debug("you are on the last page already - you can't move on");
}
It's 0 based, so on a framework with 5 pages, currentPage for the last
page is 4, hence the need for the -1.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100304/8d4c8af5/attachment.html
More information about the Xerte
mailing list