Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh() statement
Message
From
05/05/1999 08:38:28
 
 
To
04/05/1999 22:55:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00215218
Message ID:
00215281
Views:
27
>lets say I have a search form called PRODUCTS and I fire a child form called ITEMS, via a cmd button. I want the child form, ITEMS, to be refreshed after it is called, so when the user chooses a new product, the child form doesn't display the old selection.... rather, it would display the new selection.


Forms refresh themselves after they init. You don't have to do anything. Unless you mean, you launch the form, and then change the record pointer in the parent form and want to refresh the child, in which case you need to send a message to the child form from the a method that runs when you move the pointer...

Form-to-fom messaging is best handled through a forms manager, but can be accomplished by getting an object reference from one form to hte other by looping through _SCREEN.Forms and searching for your other form:
FOR EACH oForm IN _SCREEN.Forms
	IF oFOrm.Name = "MyChildForm"
		oForm.Refresh()
	ENDIF
ENDFOR
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform