Printing multiple records on a form
Kenneth Brody
kenbrody at bestweb.net
Mon Jun 6 11:05:03 PDT 2005
Quoting Marc Brumlik (Mon, 06 Jun 2005 12:22:37 -0500):
> Butch Ammon wrote:
>
> >The above method works, but, they are curious about a simpler method.
> >I explained that you can't be in a particular PO# and try to call out
> >to a system command for dreport, because that record is in use.
> >
> >
> I don't have the processing in front of me, but once solved this problem
> with something like:
>
> THEN: system noredraw "sh (sleep 3; dreport .........) &"
>
> This causes the system command to execute the two commands in
> parentheses in sequence, in the background. While the 'sleep' is
> executing, the user is returned to their filepro prompt and the record
> ceases to be in update mode. The report then runs because the record is
> unlocked.
This assumes that (a) you're on *nix where you can put things like this
in the background, and (b) the person won't do something in the next
three seconds to take you back into update mode.
Why not use the "correct" method of executing the SYSTEM command when
you're not in update mode in the first place? (ie: @ENTSEL) Store
the command in a variable, and have @ENTSEL check that variable to see
if it's supposed to execute a SYSTEM command.
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list