Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Active Page Label from Pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01031384
Message ID:
01031386
Views:
27
This message has been marked as the solution to the initial question of the thread.
>I'm creating a report on the fly from a form that has a pageframe with 20+ pages. I have a print button at the bottom of the form, and I want to get the active pages caption/label to print on the report. Any clues without have to save it each time a page is clicked?
>
>Kirk

thisform.pageframe1.activepage will give you the page number of the active page, so,

thisform.pageframe1.pages(thisform.pageframe1.activepage).caption should give you what you want
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform