Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh() statement
Message
De
05/05/1999 08:38:28
 
 
À
04/05/1999 22:55:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00215218
Message ID:
00215281
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform