Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you refresh your entire application? 1

Status
Not open for further replies.

MitchUK

Programmer
Jan 17, 2001
22
GB
HELP DEADLINE TO MEET, ONE MORE BUG TO FIX!!!

APPLICATION.UPDATE or REFRESH FUNCTION REQUIRED TO UPDATE ALL FORMS AND CONTROLS ON SHOW

I have an application that uses several forms and even more databases. At the moment the forms update fine for the "skip & skip -1" command but when i use "go top & go bottom" the form which utilises the database in question doesn't automatically update?

Is there a function i haven't found yet to accomplish this.

(More info : Main foxpro window ALWAYS contains two forms at any one time in my application. The navigation form (for navigating A: forms and B: databases) the second form is whichever form & database is required by the user. HENCE why i need to update the entire application)

"Screen.activeform" only returns the navigation form, not the user requested form below, and the user requested forms are referenced by variables.


FEEL FREE TO DIS THIS APPLICATION SET-UP COS I DIDN'T WRITE IT, I JUST GOT IT DUMPED IN MY LAP!


Help, as usual, is greatly appreciated.

THX
 
To refresh every form in your app, you can use the forms colelction property of _SCREEN.

IF _screen.formcount > 0
FOR lnCounter = 1 TO _screen.formcount
IF PEMSTATUS(_SCREEN.FORMS[lnCounter], "REFRESH", 5)
_SCREEN.FORMS[lnCounter].REFRESH()
ENDIF
ENDFOR
ENDIF

HTH,

Weedz (Wietze Veld)
veld4663@exact.nl

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top