Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form - Control from FORM to FORM
Message
From
09/10/2000 10:29:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Form - Control from FORM to FORM
Miscellaneous
Thread ID:
00426796
Message ID:
00426796
Views:
53
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?
Next
Reply
Map
View

Click here to load this message in the networking platform