>>I use such method to scan pages on the pageframe
>>
>>for example in form method :
>>
>>local i,ncp,np
>>np = thisform.pagefram1.activepage
>>ncp = thisform.pagefram1.pagecount
>>for i = 1 to ncp
>> if thisform.pageframe1.pages(i).pageorder = np
>> exit
>> endif
>>next
>>After this loop variable i will contain real active page number.
>
>What's the difference between ThisForm.PageFrame.ActivePage and the real active page number?
The ActivePage property stores the number of the page in visual order (ie the order in which you see the tabs on the screen) which is determined by the PageOrder property. What Alex is refering to as the 'Real Active Page' seems to be the physical order (maybe ZOrder?) that the pages are stored in the .scx). The physical order can't be changed in the Form Designer, but it can be changed at the .Scx level :)
Doesn't seem like you need to know the physical order of the pages, just the logical order returned by ActivePage.
Peter Stephens
Visual Records, Inc.
Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.