Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Form - Control from FORM to FORM
Hi VFP Users,
I have a problem. Multiple forms.
Main Form
Load - code runs
set procedure to proc_prg (Procedures and Functions)
Init - code runs
Search Field
COMMAND Button - click to run search
User enters search info and click s on search command button
if a match occurs
DO PROCLIST (determines which one of seven forms to DO and
then DO FORM (ie.FORMTHREE))
read events
FORMTHREE displays but the init code
clear events
return to main form (FORMONE)
Repeat above, But Search Button Command will not do anything!
I put read/clear events in because some events would not fire in the ie. FORMTWO.
All I am trying to do is use main form; seven display forms, and the seven reports that print the selected record.
Search from Main Form
Display Correct Form for the Record Type (1-7)
and then print command buttom on display form to print the record and then back to Main form.
Main Form: Dataenvironment (top level) (1 Database with 8 Tables with relationships AND only AUTO OPEN specified in main form)
FORM (1-7) SET DATASESSION to same as MAIN FORM
REPORTS (1-7) One Detail Page OF THE SELECTED RECORD (SCOPE NEXT 1)
How does one go from FORM to FORM back to MAIN FORM correctly?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement