PagePanel Panel Index Not Working

I am attempting to set a PagePanel panel index to change the page of the panel (lot’s of Ps there) and it doesn’t seem to be working. It’s certainly possible that I’m doing something wrong, but I don’t see it. For example, this code:

PagePanel1.PanelIndex = 1

Doesn’t change the PagePanel page to the second page (there are two pages assigned to the panel). I have put this line in the Open event of a window that displays the panel, and I have put this line in the Action event of a button on the window that displays the panel. I can’t seem to get any event to trigger a page change.

Any ideas?

PagePanel1.value = 1

You are using a value identifier for controls bound to the pagepanel if i’m not mistaking.

To switch to another page use PagePanel1.value = PageNum

Well dang. Sitting right in front of me and missed it each time I tried.

Thanks for the quick responses.