4GL Bigger Steps

The "quit" command occurs twice in my program, once for my exit button
widget and once for the on-window close procedure. They both look like
this,
do:
quit.
end.

If I leave "quit" out of the program the program can't be closed. If I swap
"quit" for "return" nothing seems to happen when I try to close it. The
program remains active on my desktop. Any other ideas?

Mark Dupuis
Hello 4GL'ers,
With all your help I was able to create this greate ADP export program that
runs from a desktop icon. Now I have set it up as a menu item in Vantage.
Can you guess what my question is going to be? The program runs fine from
Vantage but when I close it, it also closes Vantage. I'm guessing when the
QUIT command in the 4GL program closes prowin32 it also closes Vantage. Is
there another command or another method of closing the 4GL without closing
Vantage? Am I guessing wrong, is there another reason that Vantage closes?
In this perticular case it's not a big deal to run the program from the
destop (only 2 users), but future programs might have to be accesed by many
more.

TIA
Mark Dupuis
I believe simply omitting the quit statement should do the trick.

I've had trouble closing progress programs within vantage when using
windows, but I converted them to frame dialogs instead.

Thaddeus

-----Original Message-----
From: Mark Dupuis [mailto:dupuism@...]
Sent: Friday, February 22, 2002 6:10 AM
To: Vantage Usres Group
Subject: [Vantage] 4GL Bigger Steps


Hello 4GL'ers,
With all your help I was able to create this greate ADP export
program that
runs from a desktop icon. Now I have set it up as a menu item in Vantage.
Can you guess what my question is going to be? The program runs fine from
Vantage but when I close it, it also closes Vantage. I'm guessing when the
QUIT command in the 4GL program closes prowin32 it also closes Vantage. Is
there another command or another method of closing the 4GL without closing
Vantage? Am I guessing wrong, is there another reason that Vantage closes?
In this perticular case it's not a big deal to run the program from
the
destop (only 2 users), but future programs might have to be accesed by many
more.

TIA
Mark Dupuis




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
The QUIT statement shuts down prowin32. A program can return to the calling
program by finishing all the statements or by using the RETURN statement.
But this brings up the editor which is why some people use the QUIT
statement. If you have a menu program running a variety of other programs,
those programs should use RETURN, not QUIT, so control passes back to the
menu program. If one of those programs must be run on a scheduled basis, you execute it with prowin32 with the -rr option, effectively simulating the QUIT when the program ends. The menu program can use QUIT since nothing else probably runs it. In your case, Vantage is the menu program.

Chris Robisch
425-788-2489
crobisch1@...

"Mark Dupuis" <dupuism@...> wrote:

>Hello 4GL'ers,
> With all your help I was able to create this greate ADP export program that
>runs from a desktop icon. Now I have set it up as a menu item in Vantage.
>Can you guess what my question is going to be? The program runs fine from
>Vantage but when I close it, it also closes Vantage. I'm guessing when the
>QUIT command in the 4GL program closes prowin32 it also closes Vantage. Is
>there another command or another method of closing the 4GL without closing
>Vantage? Am I guessing wrong, is there another reason that Vantage closes?
> In this perticular case it's not a big deal to run the program from the
>destop (only 2 users), but future programs might have to be accesed by many
>more.
>
>TIA
>Mark Dupuis
>
>
>
>
>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
>(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
>(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
>(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Chris wrote: If one of those programs must be run on a scheduled basis, you execute it with prowin32 with the -rr option, effectively simulating the QUIT when the program ends.

Chris,
Can you explain the above in more detail? I have a menu program (exportA.r) that calls three other programs (exportaJob.r, exportaPart.r, and exportaBOM.r). How would I implement the above to eliminate the message window, but not leave prowin32 hanging.

Troy Funte
Liberty Electronics

----- Original Message -----
From: crobisch1@...
To: vantage@yahoogroups.com
Sent: Friday, February 22, 2002 11:18 AM
Subject: RE: [Vantage] 4GL Bigger Steps


The QUIT statement shuts down prowin32. A program can return to the calling
program by finishing all the statements or by using the RETURN statement.
But this brings up the editor which is why some people use the QUIT
statement. If you have a menu program running a variety of other programs,
those programs should use RETURN, not QUIT, so control passes back to the
menu program. If one of those programs must be run on a scheduled basis, you execute it with prowin32 with the -rr option, effectively simulating the QUIT when the program ends. The menu program can use QUIT since nothing else probably runs it. In your case, Vantage is the menu program.

Chris Robisch
425-788-2489
crobisch1@...

"Mark Dupuis" <dupuism@...> wrote:

>Hello 4GL'ers,
> With all your help I was able to create this greate ADP export program that
>runs from a desktop icon. Now I have set it up as a menu item in Vantage.
>Can you guess what my question is going to be? The program runs fine from
>Vantage but when I close it, it also closes Vantage. I'm guessing when the
>QUIT command in the 4GL program closes prowin32 it also closes Vantage. Is
>there another command or another method of closing the 4GL without closing
>Vantage? Am I guessing wrong, is there another reason that Vantage closes?
> In this perticular case it's not a big deal to run the program from the
>destop (only 2 users), but future programs might have to be accesed by many
>more.
>
>TIA
>Mark Dupuis
>
>
>
>
>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
>(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
>(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
>(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]
I think what he's talking about in that sentence is running a
Progress program from something other than another Progress program,
otherwise the Prowin32 command wouldn't be necessary.

Your exporta.r, if ran from a command line, would have the QUIT
statement or the -rr parameter. The called routines could be closed
with these...

APPLY "CLOSE":U TO THIS-PROCEDURE.
RETURN NO-APPLY.

...without closing exporta.r.

Lonnie

--- In vantage@y..., "Troy Funte" <tfunte@e...> wrote:
> Chris wrote: If one of those programs must be run on a scheduled
basis, you execute it with prowin32 with the -rr option, effectively
simulating the QUIT when the program ends.
>
> Chris,
> Can you explain the above in more detail? I have a menu program
(exportA.r) that calls three other programs (exportaJob.r,
exportaPart.r, and exportaBOM.r). How would I implement the above to
eliminate the message window, but not leave prowin32 hanging.
>
> Troy Funte
> Liberty Electronics
>
> ----- Original Message -----
> From: crobisch1@c...
> To: vantage@y...
> Sent: Friday, February 22, 2002 11:18 AM
> Subject: RE: [Vantage] 4GL Bigger Steps
>
>
> The QUIT statement shuts down prowin32. A program can return to
the calling
> program by finishing all the statements or by using the RETURN
statement.
> But this brings up the editor which is why some people use the
QUIT
> statement. If you have a menu program running a variety of other
programs,
> those programs should use RETURN, not QUIT, so control passes
back to the
> menu program. If one of those programs must be run on a scheduled
basis, you execute it with prowin32 with the -rr option, effectively
simulating the QUIT when the program ends. The menu program can use
QUIT since nothing else probably runs it. In your case, Vantage is
the menu program.
>
> Chris Robisch
> 425-788-2489
> crobisch1@c...
>
> "Mark Dupuis" <dupuism@r...> wrote:
>
> >Hello 4GL'ers,
> > With all your help I was able to create this greate ADP
export program that
> >runs from a desktop icon. Now I have set it up as a menu item
in Vantage.
> >Can you guess what my question is going to be? The program runs
fine from
> >Vantage but when I close it, it also closes Vantage. I'm
guessing when the
> >QUIT command in the 4GL program closes prowin32 it also closes
Vantage. Is
> >there another command or another method of closing the 4GL
without closing
> >Vantage? Am I guessing wrong, is there another reason that
Vantage closes?
> > In this perticular case it's not a big deal to run the
program from the
> >destop (only 2 users), but future programs might have to be
accesed by many
> >more.
> >
> >TIA
> >Mark Dupuis
> >
> >
> >
> >
> >Useful links for the Yahoo!Groups Vantage Board are: ( Note:
You must have already linked your email address to a yahoo id to
enable access. )
> >(1) To access the Files Section of our Yahoo!Group for Report
Builder and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
> >(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
> >(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
> >
> >Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You
must have already linked your email address to a yahoo id to enable
access. )
> (1) To access the Files Section of our Yahoo!Group for Report
Builder and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
I believe you have PROWIN32, not Vantage, running menu program EXPORTA which runs the other three programs. If you want EXPORTAJOB to shut down the menu program, use the QUIT statement in EXPORTAJOB. If you want to return control to EXPORTA so the user can select another program, you MUST use RETURN instead of QUIT (or none of them) in EXPORTAJOB. Use the QUIT statement in EXPORTA.

The -rr option is useful to run a program by itself that is also run from a menu program. You don't want to use QUIT because control wouldn't be passed back to the menu program.

"Troy Funte" <tfunte@...> wrote:

>Chris wrote: If one of those programs must be run on a scheduled basis, you execute it with prowin32 with the -rr option, effectively simulating the QUIT when the program ends.
>
>Chris,
> Can you explain the above in more detail? I have a menu program (exportA.r) that calls three other programs (exportaJob.r, exportaPart.r, and exportaBOM.r). How would I implement the above to eliminate the message window, but not leave prowin32 hanging.
>
>Troy Funte
>Liberty Electronics
>
> ----- Original Message -----
> From: crobisch1@...
> To: vantage@yahoogroups.com
> Sent: Friday, February 22, 2002 11:18 AM
> Subject: RE: [Vantage] 4GL Bigger Steps
>
>
> The QUIT statement shuts down prowin32. A program can return to the calling
> program by finishing all the statements or by using the RETURN statement.
> But this brings up the editor which is why some people use the QUIT
> statement. If you have a menu program running a variety of other programs,
> those programs should use RETURN, not QUIT, so control passes back to the
> menu program. If one of those programs must be run on a scheduled basis, you execute it with prowin32 with the -rr option, effectively simulating the QUIT when the program ends. The menu program can use QUIT since nothing else probably runs it. In your case, Vantage is the menu program.
>
> Chris Robisch
> 425-788-2489
> crobisch1@...
>
> "Mark Dupuis" <dupuism@...> wrote:
>
> >Hello 4GL'ers,
> > With all your help I was able to create this greate ADP export program that
> >runs from a desktop icon. Now I have set it up as a menu item in Vantage.
> >Can you guess what my question is going to be? The program runs fine from
> >Vantage but when I close it, it also closes Vantage. I'm guessing when the
> >QUIT command in the 4GL program closes prowin32 it also closes Vantage. Is
> >there another command or another method of closing the 4GL without closing
> >Vantage? Am I guessing wrong, is there another reason that Vantage closes?
> > In this perticular case it's not a big deal to run the program from the
> >destop (only 2 users), but future programs might have to be accesed by many
> >more.
> >
> >TIA
> >Mark Dupuis
> >
> >
> >
> >
> >Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> >(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> >(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> >(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
>[Non-text portions of this message have been removed]
>
>
>
>Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
>(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
>(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
>(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/links
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>