Andy,
Highlight the code and pres the DEL key! <BG>

Seriously though, you may still need this in places. 

I usually add a This.Refresh into the Page Activate() event so the page gets
refreshed when you go to it. From then on I manually control the Page
Refresh or allow the Pageframe refresh to handle it.

This is fine UNLESS you have a Grid set up with a Parent/Child relationship
in which case the grid cursor will be refreshed and the file pointer moved
so just be careful.

Dave Crozier


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Andy Davies
Sent: 29 March 2007 17:06
To: [email protected]
Subject: pageframe refresh


Hi,
I have the following code in my (very old) pageframe base class - it used
to be necesary but now (vfp9) I seem to be getting multiple refreshes - can
I get rid of this?

   * a form refresh() is supposed to refresh all objects on a form
   * but a PageFrame refresh() only refreshes the active page
   * it seems that the form refresh just calls the PageFrame refresh -
so...

   LOCAL i
   FOR i = 1 TO this.PageCount
      this.Pages[i].Refresh()
   NEXT i

Andrew Davies  MBCS CITP
  - AndyD        8-)#


**********************************************************************

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Please contact [EMAIL PROTECTED] with any queries.

**********************************************************************



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to