>how to create pageframe that depends on the record
>for example
>
>I have category table and three records
>
>I want to make the pageframe's page depends on this three record
>
>for example
>
>THISFORM.LockScreen = .T.
>n = 0
>CNTREC = 0
>SELECT CATEGORY
>GO TOP
>DO WHIL !EOF()
> CNTREC = CNTREC + 1
> SKIP
>ENDD
>
>THISFORM.PAGEFRAME1.PAGECOUNT = CNTREC
>FOR n = 1 to THISFORM.PAGEFRAME1.PAGECOUNT
> THISFORM.PAGEFRAME1.Pages(n).Caption = CATEGORY.DESCRIPTION
>ENDFOR
>THISFORM.LockScreen = .F.
>
>this coding can successfully displays three pages but the category description cannot display for the page's caption
>
>
>thank for your help
select category
ThisForm.Pageframe1.pagecount = reccount()
scan
ThisForm.Pageframe1.pages(recno()).caption = category.description
endscanCetin