dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Jul 9, 2000

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Data Field Refresh on Forms

Question:
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?

Answer:
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:

  1. Add the following code to the Activate event of each page in the pageframe:
    this.Refresh()
    This will refresh each page as it is activated.

    OR

  2. Put the following code into the Refresh method of the pageframe:
    LOCAL lnPage
    FOR lnPage = 1 TO This.PageCount
        this.Pages(lnPage).Refresh()
    ENDFOR
    This will call the refresh method of each page in the pageframe.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date