I have a multi-page form with navigation controls on the first page. When I "Next"
through the records, the data fields refresh fine on Page One but not on the other pages.
What am I doing wrong?
The Next button calls the refresh method of the pageframe. For GUI optimization reasons,
VFP only refreshes the currently visible page when the refresh method of a pageframe is
called. There are two approaches you could take to solve your problem:
- Add the following code to the Activate event of each page in the pageframe:
This will refresh each page as it is activated.
- Put the following code into the Refresh method of the pageframe:
FOR lnPage = 1 TO This.PageCount
This will call the refresh method of each page in the pageframe.