Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paging Page Somenumber
Message
From
15/07/1998 15:33:25
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00116970
Message ID:
00117787
Views:
17
I went and added the property to the subclass. I guess that's kinda cheating, but I didn't know how else to do it. :)

Where does "Pages" come from down at the bottom? Is that a built in array? I don't see it defined.

Thanks,

-Michelle


>Unless you are using a custom Page subclass you can't have a RecordNo property for each page. But that would be easy to add if you did this in a .prg
>
>
* pagMichelle.prg
>define pagMichelle as Page
>   RecordNo = 0
>enddefine
>
>But to build the pageframe you can't just set the PageCount, you need to
>AddObject each page:
>
>* pageframe.Init
>set procedure to pagMichelle additive
>for i = 1 to 10
>   lcStr = "Page" + padl( i, '0', 2 )
>   this.AddObject( lcStr, "pagMichelle" )
>   with this.Pages[i]
>      .Caption = trips.cName
>      .RecordNo = recno()
>   endwith
>   skip 1
>endfor
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform