>>>Ok, now how to change the pageorder to reorder the pages if necessary? There must be a way to do it? You cannot change the pageorder value to a value that is already used by another page and you cannot change it to something higher than the pagecount, so the below doesn't work:
>>
>>What do you mean you can't change the pageorder? I just did it and it just plain worked. I've set the pageorder of page2 to 4, and VFP (7 sp1) set page3.pageorder to 2, page4.pageorder to 3. Pretty much just the same as it does with columns in a grid when you change columnorder.
>
>The use off the pageorder not really clear because the collection index number is not the pageorder number so if you work with the pages collection to access the pages the pages seems not to be in the good order.
It's really unclear the first time you start playing with it, but then you only have to understand that pages() collection has the pages in order of creation ALWAYS, and that the pageorder has nothing to do with it - pageorder is the display order. Since Tracy already has this referenced in an array, sorted by current pageorder, I didn't really mention it, figuring she knew this already.