Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning from printing to form
Message
From
17/03/1998 15:37:11
 
 
To
17/03/1998 13:14:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00084927
Message ID:
00085184
Views:
33
>Sorry, Nigel, but now I'm really confused.
>
>You have an application that has a data entry (?) form. This form is modeless, and has a button that issues a REPORT FORM command and sets focus...where? Why? If the button is on the form, and has focus enough to issue a set focus command to it's parent form, then the parent form already has focus, doesn't it?
>
>Admittedly I don't handle my reporting like this, but the set focus seems really odd. What happens if you just do the REPORT FORM w/o a set focus (just for jollies)?
>
>Also, what did you mean in your original message about having to restart the program after printing? Does the form close? Does the APP quit? Does this happen both from the command window and from running the EXE directly (if there is one)?
>
>Where is your READ EVENTS? Where is your CLEAR EVENTS?
>
>You specifically mention that you have 9 buttons and 3 of them print reports. Was that important? Do some of the print buttons work okay? What do the other six buttons do?
>
>You'll probably already have solved your problem, and I might be chasing a red herring
>
>PS you need an ON SHUTDOWN routine to close your app with the "X"
>
>...snip
>>To answer Nancy's questions first the form is modeless, its in
>>an application and that was all the code in the command button
>>except for a setfocus to the form.
>>
>...snip
>>
>>the message says "Cannot quit Fox Pro but when you click OK
>...snip
Dear Nancy,
I think the reason you are confused is that I initiated this
series, Nigel like you was helping me out and the information he provided
on how he does this this may have gotten confused with my joriginal question.

To answer your questions as to what my program looks like; it
consistes of a main program with just read events and then on
shutdown cear events and quit. The form has three command buttons
which update a file 1)either by deleting all records and appending
a text deliminated file or 2)updating this file with a daily text deliminated
fileor 3) Creating from that DBF file a file of records meeting
certain cirteria. There are two command buttons creating such
derivative files. The balance of the command buttons either
browse these files which result from the first four command
buttons or print their content.

What happens after you browse these dbf files is that when you
close them them form returns. But if you print them without
the noconsole qualifier the output of the last page remains on
the screen. When you close it the program closes down. If you
add the noconsole the the job is sent to the printer and the program which is
an exe closes.

The fix of setting focus to a command button on the form works
though I am surprised it is necessary and I judge from your
comments you are too. Anyway is the placing of my shutdown
routine on the main program the problem or do I need more that
clear events and quit. Thank for everyones help.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform