>It's much too late in the week for me to be thinking coherently.
>
>I have a PageFrame control. Instead of setting the active page via a number, I would like to set it by referring to the page name. For example
>thisform.pFrame.ActivePage = "pagename"
>
>I can think of a couple of ways do doing this with form properties but I'm hoping there is something within the pageframe control that I can reference directly.
If you subclass the pageframe, in the subclass you may try to add an assign method to the ActivePage property, and there
lparameter vNewVal
if vartype(vNEwVal)="C"
for i=1 to this.pagecount
if upper(this.pages[i].name)=upper(vNewVal)
vNewVal=i
exit
endif
endfor
endif
this.activepage=vNewVal
Looking at what Çetin proposed, here's a better one:
if vartype(vNEwVal)="C"
oPage=this.getpem(vNewVal)
vNewVal=oPage.pageorder
endif
this.activepage=vNewVal
Error checking etc left as an exercise ;).