Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form - Control from FORM to FORM
Message
 
 
À
09/10/2000 10:29:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00426796
Message ID:
00426811
Vues:
17
Roland,
First of all, you can only have one READ EVENTS active in VFP. In FPW days, you could have multiple read levels. That is something of the past. IN VFP, if you try to issue a READ EVENTS while one is already active, VFP eats it without doing anything. The normal application startup is:

do mymenu.mpr
do form initialform
read events
do cleanup

The menu would have an option to CLEAR EVENTS and then the line following the READ EVENTS would fire.

If you want limit the navigation of your application, you can make each form Modal (WindowType = 1). When the form runs, processing will stop when the form becomes visible and not continue until the form is hidden or released. Using this technique, you can constantly launch forms and when the forms are released, the preceding form will become active.

HTH.

>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?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform