Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing form problem
Message
De
01/02/2006 12:57:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01092251
Message ID:
01092436
Vues:
19
>I have a form which allows user to create subject and body for emails. On the form is a browse button which when clicked gives a list of emails that have been created in a listbox. The listbox on the form is bound to a table. When I select an email that I want to edit you select from the list box and then when you click OK the child form closes and the main form refreshes to show the email. The problem is my record pointer moves fine but the form does not refresh until I click on edit. How do i refresh the form when closing my other form please?

As per David's suggestion to pass the calling form as a parameter, it's not even necessary to do that. You can pick up the calling form reference in the Load of the child form by accessing _SCREEN.ActiveForm. Until the child form is actually instanciated, _SCREEN.ActiveForm refers to the calling parent form. So in the Child.Load, you could then save that reference into a Child.oCallingForm property.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform