Maybe I am a stupid, or maybe PageFrame is a very poor control. You decide.
In a pageframe I have 5 pages. On the other form, (identical), I have other 4 pages.
I followed next steps:
1. Form 1: PageFrame.Pagecount=9
2. Copy all controls from first page, form 2 and paste in 6th page, form 1, and so on, till I finish.
3. Form 1: 5th page, set PageOrder Property to 9. Page goes last.
With 9th page active, the following line:
THISFORM.pagini.ACTIVEPAGE
returns 5!
And this is one of many strange things in VFP...
No more comments.
Grigore Dolghin
Class Software.