4GL Baby steps

Thanks Thaddeus, Jim and William.
I installed my shortcut on six other workstations successfully. On the one
that failed I uninstalled progress client 9.1a and reinstalled it. This
solved the problem. I have succesfully written and deployed my first 4GL
program. I want to thank everyone who contributed to my education, THANKS!!
:)

Mark Dupuis
I have taken the 4GL plunge. I am starting slowly by playing
with existing procedures using the procedure editor (prowin32). I
have created frames and widgets with functioning code. Using f2 to
run the procedure code works fine. Now I want to run the code from
my desktop or from within Vantage.
From the desktop I edited a .vtg icon (I saw this in a string a few
weeks ago) and changed the startup procedure to point to my procedure
(test.p). This starts the procedure ok but after I close the
procedure I get a progress login screen and then an instance of the
procedure editor with a file -untitled that opens. I assume it is
because the vtg file uses prowin32 as the executable. Is there a way
to run a 4GL procedure without using prowin32? Is there a way to
close the editor when the procedure is closed? I have the same
problem when I create a short cut with this line (also got this from
the group)

N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
servicename -H servername -p n:\vantage\test.p

Ok all you 4GL'ers what am I missing? If the answer is lengthy
you
can reach me off the group but I would hope there are others on line
who might be interested. And THANKS to whoever posted the vtg info
and the shortcut info.
BTW: I do not have AppBuilder.

Mark Dupuis
dupuism@...
You need to add the QUIT command after the procedue ends.

Mark Charamut

President
Caesar Development Services, LLC
mcharamut@...
www.caesardev.com
(860) 667-4774 x20



> -----Original Message-----
> From: dupuismd [mailto:dupuism@...]
> Sent: Thursday, January 10, 2002 11:03 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] 4GL Baby steps
>
>
> I have taken the 4GL plunge. I am starting slowly by playing
> with existing procedures using the procedure editor (prowin32). I
> have created frames and widgets with functioning code. Using f2 to
> run the procedure code works fine. Now I want to run the code from
> my desktop or from within Vantage.
> From the desktop I edited a .vtg icon (I saw this in a string a few
> weeks ago) and changed the startup procedure to point to my procedure
> (test.p). This starts the procedure ok but after I close the
> procedure I get a progress login screen and then an instance of the
> procedure editor with a file -untitled that opens. I assume it is
> because the vtg file uses prowin32 as the executable. Is there a way
> to run a 4GL procedure without using prowin32? Is there a way to
> close the editor when the procedure is closed? I have the same
> problem when I create a short cut with this line (also got this from
> the group)
>
> N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
> servicename -H servername -p n:\vantage\test.p
>
> Ok all you 4GL'ers what am I missing? If the answer is lengthy
> you
> can reach me off the group but I would hope there are others on line
> who might be interested. And THANKS to whoever posted the vtg info
> and the shortcut info.
> BTW: I do not have AppBuilder.
>
> Mark Dupuis
> dupuism@...
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Tiny Wireless Camera under $80!
> Order Now! FREE VCR Commander!
> Click Here - Only 1 Day Left!
> http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
> --------------------------------------------------------------
> -------~->
>
> 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/
>
No $#!t. For 2 days I have been determined to work this one out. I just
wouldn't QUIT! Ha Ha.
Mark Thanks for the tip.

Mark Dupuis
dupuism@...

-----Original Message-----
From: Mark Charamut [mailto:mrprogress@...]
Sent: Friday, January 11, 2002 11:12 AM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] 4GL Baby steps


You need to add the QUIT command after the procedue ends.

Mark Charamut

President
Caesar Development Services, LLC
mcharamut@...
www.caesardev.com
(860) 667-4774 x20



> -----Original Message-----
> From: dupuismd [mailto:dupuism@...]
> Sent: Thursday, January 10, 2002 11:03 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] 4GL Baby steps
>
>
> I have taken the 4GL plunge. I am starting slowly by playing
> with existing procedures using the procedure editor (prowin32). I
> have created frames and widgets with functioning code. Using f2 to
> run the procedure code works fine. Now I want to run the code from
> my desktop or from within Vantage.
> From the desktop I edited a .vtg icon (I saw this in a string a few
> weeks ago) and changed the startup procedure to point to my procedure
> (test.p). This starts the procedure ok but after I close the
> procedure I get a progress login screen and then an instance of the
> procedure editor with a file -untitled that opens. I assume it is
> because the vtg file uses prowin32 as the executable. Is there a way
> to run a 4GL procedure without using prowin32? Is there a way to
> close the editor when the procedure is closed? I have the same
> problem when I create a short cut with this line (also got this from
> the group)
>
> N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
> servicename -H servername -p n:\vantage\test.p
>
> Ok all you 4GL'ers what am I missing? If the answer is lengthy
> you
> can reach me off the group but I would hope there are others on line
> who might be interested. And THANKS to whoever posted the vtg info
> and the shortcut info.
> BTW: I do not have AppBuilder.
>
> Mark Dupuis
> dupuism@...
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Tiny Wireless Camera under $80!
> Order Now! FREE VCR Commander!
> Click Here - Only 1 Day Left!
> http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
> --------------------------------------------------------------
> -------~->
>
> 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/
>


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/
alternately to creating a .vtg file, you can create a windows shortcut to
prowin32.exe with a target similar the following:

V:\DLCSRV\bin\prowin32.exe -db V:\apps\vantage\db\dcdv7.db -N TCP -S
vntgserv -H SERVERNAME -p X:\anypath\ProgramName.p

Case sensitivity matters with the commandline switches.

this will bypass the vantage.exe file, so the splash screen does not
display, and the program begins execution in a shorter amount of time.

HTH,

Thaddeus


-----Original Message-----
From: Mark Dupuis [mailto:dupuism@...]
Sent: Thursday, January 10, 2002 8:29 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] 4GL Baby steps


No $#!t. For 2 days I have been determined to work this one out. I just
wouldn't QUIT! Ha Ha.
Mark Thanks for the tip.

Mark Dupuis
dupuism@...

-----Original Message-----
From: Mark Charamut [mailto:mrprogress@...]
Sent: Friday, January 11, 2002 11:12 AM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] 4GL Baby steps


You need to add the QUIT command after the procedue ends.

Mark Charamut

President
Caesar Development Services, LLC
mcharamut@...
www.caesardev.com
(860) 667-4774 x20



> -----Original Message-----
> From: dupuismd [mailto:dupuism@...]
> Sent: Thursday, January 10, 2002 11:03 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] 4GL Baby steps
>
>
> I have taken the 4GL plunge. I am starting slowly by playing
> with existing procedures using the procedure editor (prowin32). I
> have created frames and widgets with functioning code. Using f2 to
> run the procedure code works fine. Now I want to run the code from
> my desktop or from within Vantage.
> From the desktop I edited a .vtg icon (I saw this in a string a few
> weeks ago) and changed the startup procedure to point to my procedure
> (test.p). This starts the procedure ok but after I close the
> procedure I get a progress login screen and then an instance of the
> procedure editor with a file -untitled that opens. I assume it is
> because the vtg file uses prowin32 as the executable. Is there a way
> to run a 4GL procedure without using prowin32? Is there a way to
> close the editor when the procedure is closed? I have the same
> problem when I create a short cut with this line (also got this from
> the group)
>
> N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
> servicename -H servername -p n:\vantage\test.p
>
> Ok all you 4GL'ers what am I missing? If the answer is lengthy
> you
> can reach me off the group but I would hope there are others on line
> who might be interested. And THANKS to whoever posted the vtg info
> and the shortcut info.
> BTW: I do not have AppBuilder.
>
> Mark Dupuis
> dupuism@...
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Tiny Wireless Camera under $80!
> Order Now! FREE VCR Commander!
> Click Here - Only 1 Day Left!
> http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
> --------------------------------------------------------------
> -------~->
>
> 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/
>


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/



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/
Since there've been numerous discussions about moving data around in
Vbforms, is there a practical way to copy the hire date from PREmpMas table
to the EmpBasic table when a new employee is entered, or is this a custom
programming situation?

Shirley H. Graver
(End User)
Systems Administrator
Rubber Associates Inc.



[Non-text portions of this message have been removed]
To make life easier I would create a .pf file and use the following:

V:\DLCSRV\bin\prowin32.exe -pf V:\Vantage\Path\file.pf

My .pf file would Look something like:

-db V:\apps\vantage\db\dcdv7.db -N TCP -S vntgserv -H SERVERNAME -p X:\anypath\ProgramName.p

Now you can update the .pf file when you change Servers or Versions etc. and you wouldn't have to go to each desktop to change the shortcuts, unless the drive mappings or
the path to the .pf file changes.


Jim


Thad Jacobs wrote:

> alternately to creating a .vtg file, you can create a windows shortcut to
> prowin32.exe with a target similar the following:
>
> V:\DLCSRV\bin\prowin32.exe -db V:\apps\vantage\db\dcdv7.db -N TCP -S
> vntgserv -H SERVERNAME -p X:\anypath\ProgramName.p
>
> Case sensitivity matters with the commandline switches.
>
> this will bypass the vantage.exe file, so the splash screen does not
> display, and the program begins execution in a shorter amount of time.
>
> HTH,
>
> Thaddeus
>
> -----Original Message-----
> From: Mark Dupuis [mailto:dupuism@...]
>
> No $#!t. For 2 days I have been determined to work this one out. I just
> wouldn't QUIT! Ha Ha.
> Mark Thanks for the tip.
>
> Mark Dupuis
> dupuism@...
>
> -----Original Message-----
> From: Mark Charamut [mailto:mrprogress@...]
>
> You need to add the QUIT command after the procedue ends.
>
> Mark Charamut
>
> President
> Caesar Development Services, LLC
> mcharamut@...
> www.caesardev.com
> (860) 667-4774 x20
>
> > -----Original Message-----
> > From: dupuismd [mailto:dupuism@...]
> >
> > I have taken the 4GL plunge. I am starting slowly by playing
> > with existing procedures using the procedure editor (prowin32). I
> > have created frames and widgets with functioning code. Using f2 to
> > run the procedure code works fine. Now I want to run the code from
> > my desktop or from within Vantage.
> > From the desktop I edited a .vtg icon (I saw this in a string a few
> > weeks ago) and changed the startup procedure to point to my procedure
> > (test.p). This starts the procedure ok but after I close the
> > procedure I get a progress login screen and then an instance of the
> > procedure editor with a file -untitled that opens. I assume it is
> > because the vtg file uses prowin32 as the executable. Is there a way
> > to run a 4GL procedure without using prowin32? Is there a way to
> > close the editor when the procedure is closed? I have the same
> > problem when I create a short cut with this line (also got this from
> > the group)
> >
> > N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
> > servicename -H servername -p n:\vantage\test.p
> >
> > Ok all you 4GL'ers what am I missing? If the answer is lengthy
> > you
> > can reach me off the group but I would hope there are others on line
> > who might be interested. And THANKS to whoever posted the vtg info
> > and the shortcut info.
> > BTW: I do not have AppBuilder.
> >
> > Mark Dupuis
> > dupuism@...
Interesting solution, Jim. Thanks for sharing it. I can see where if the number of Programs you were running this way increased much, this could simplify the installation process on PC's. Just the kind of information that makes this list so educational and helpful.

Troy Funte
Liberty Electronics

----- Original Message -----
From: Jim Mediger
To: vantage@yahoogroups.com
Sent: Friday, January 11, 2002 9:01 AM
Subject: Re: [Vantage] 4GL Baby steps


To make life easier I would create a .pf file and use the following:

V:\DLCSRV\bin\prowin32.exe -pf V:\Vantage\Path\file.pf

My .pf file would Look something like:

-db V:\apps\vantage\db\dcdv7.db -N TCP -S vntgserv -H SERVERNAME -p X:\anypath\ProgramName.p

Now you can update the .pf file when you change Servers or Versions etc. and you wouldn't have to go to each desktop to change the shortcuts, unless the drive mappings or
the path to the .pf file changes.


Jim


Thad Jacobs wrote:

> alternately to creating a .vtg file, you can create a windows shortcut to
> prowin32.exe with a target similar the following:
>
> V:\DLCSRV\bin\prowin32.exe -db V:\apps\vantage\db\dcdv7.db -N TCP -S
> vntgserv -H SERVERNAME -p X:\anypath\ProgramName.p
>
> Case sensitivity matters with the commandline switches.
>
> this will bypass the vantage.exe file, so the splash screen does not
> display, and the program begins execution in a shorter amount of time.
>
> HTH,
>
> Thaddeus
>
> -----Original Message-----
> From: Mark Dupuis [mailto:dupuism@...]
>
> No $#!t. For 2 days I have been determined to work this one out. I just
> wouldn't QUIT! Ha Ha.
> Mark Thanks for the tip.
>
> Mark Dupuis
> dupuism@...
>
> -----Original Message-----
> From: Mark Charamut [mailto:mrprogress@...]
>
> You need to add the QUIT command after the procedue ends.
>
> Mark Charamut
>
> President
> Caesar Development Services, LLC
> mcharamut@...
> www.caesardev.com
> (860) 667-4774 x20
>
> > -----Original Message-----
> > From: dupuismd [mailto:dupuism@...]
> >
> > I have taken the 4GL plunge. I am starting slowly by playing
> > with existing procedures using the procedure editor (prowin32). I
> > have created frames and widgets with functioning code. Using f2 to
> > run the procedure code works fine. Now I want to run the code from
> > my desktop or from within Vantage.
> > From the desktop I edited a .vtg icon (I saw this in a string a few
> > weeks ago) and changed the startup procedure to point to my procedure
> > (test.p). This starts the procedure ok but after I close the
> > procedure I get a progress login screen and then an instance of the
> > procedure editor with a file -untitled that opens. I assume it is
> > because the vtg file uses prowin32 as the executable. Is there a way
> > to run a 4GL procedure without using prowin32? Is there a way to
> > close the editor when the procedure is closed? I have the same
> > problem when I create a short cut with this line (also got this from
> > the group)
> >
> > N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
> > servicename -H servername -p n:\vantage\test.p
> >
> > Ok all you 4GL'ers what am I missing? If the answer is lengthy
> > you
> > can reach me off the group but I would hope there are others on line
> > who might be interested. And THANKS to whoever posted the vtg info
> > and the shortcut info.
> > BTW: I do not have AppBuilder.
> >
> > Mark Dupuis
> > dupuism@...


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]
Great idea Jim, and nows the time for me to do this, before I create forty
shortcuts.
Thanks!
Mark Dupuis


-----Original Message-----
From: Jim Mediger [mailto:JimM@...]
Sent: Friday, January 11, 2002 9:01 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] 4GL Baby steps


To make life easier I would create a .pf file and use the following:

V:\DLCSRV\bin\prowin32.exe -pf V:\Vantage\Path\file.pf

My .pf file would Look something like:

-db V:\apps\vantage\db\dcdv7.db -N TCP -S vntgserv -H SERVERNAME -p
X:\anypath\ProgramName.p

Now you can update the .pf file when you change Servers or Versions etc. and
you wouldn't have to go to each desktop to change the shortcuts, unless the
drive mappings or
the path to the .pf file changes.


Jim


Thad Jacobs wrote:

> alternately to creating a .vtg file, you can create a windows shortcut to
> prowin32.exe with a target similar the following:
>
> V:\DLCSRV\bin\prowin32.exe -db V:\apps\vantage\db\dcdv7.db -N TCP -S
> vntgserv -H SERVERNAME -p X:\anypath\ProgramName.p
>
> Case sensitivity matters with the commandline switches.
>
> this will bypass the vantage.exe file, so the splash screen does not
> display, and the program begins execution in a shorter amount of time.
>
> HTH,
>
> Thaddeus
>
> -----Original Message-----
> From: Mark Dupuis [mailto:dupuism@...]
>
> No $#!t. For 2 days I have been determined to work this one out. I just
> wouldn't QUIT! Ha Ha.
> Mark Thanks for the tip.
>
> Mark Dupuis
> dupuism@...
>
> -----Original Message-----
> From: Mark Charamut [mailto:mrprogress@...]
>
> You need to add the QUIT command after the procedue ends.
>
> Mark Charamut
>
> President
> Caesar Development Services, LLC
> mcharamut@...
> www.caesardev.com
> (860) 667-4774 x20
>
> > -----Original Message-----
> > From: dupuismd [mailto:dupuism@...]
> >
> > I have taken the 4GL plunge. I am starting slowly by playing
> > with existing procedures using the procedure editor (prowin32). I
> > have created frames and widgets with functioning code. Using f2 to
> > run the procedure code works fine. Now I want to run the code from
> > my desktop or from within Vantage.
> > From the desktop I edited a .vtg icon (I saw this in a string a few
> > weeks ago) and changed the startup procedure to point to my procedure
> > (test.p). This starts the procedure ok but after I close the
> > procedure I get a progress login screen and then an instance of the
> > procedure editor with a file -untitled that opens. I assume it is
> > because the vtg file uses prowin32 as the executable. Is there a way
> > to run a 4GL procedure without using prowin32? Is there a way to
> > close the editor when the procedure is closed? I have the same
> > problem when I create a short cut with this line (also got this from
> > the group)
> >
> > N:\progress\bin\prowin32.exe -db n:\vantage\db\vantage.db -N TCP -S
> > servicename -H servername -p n:\vantage\test.p
> >
> > Ok all you 4GL'ers what am I missing? If the answer is lengthy
> > you
> > can reach me off the group but I would hope there are others on line
> > who might be interested. And THANKS to whoever posted the vtg info
> > and the shortcut info.
> > BTW: I do not have AppBuilder.
> >
> > Mark Dupuis
> > dupuism@...



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/
Hello 4GL'ers
I have completed my first program. It's rather simple, it gets a date from
a user along with number of days and then runs a report using this info in
the filter. I have a desktop shortcut (Thanks Thaddeus) and a .pf file with
the database info. (Thanks Jim) When the program runs it creates a .csv file
on my desktop as planned. When the user clicks exit the program closes
along with the procedure editor. (Thanks Mark)
Now I have a few more questions.
1) When the program is running my main frame lies within a progress frame
which displays "Enter data or press ESC to end" at the bottom. When you
press ESC the program closes but the progress login shows up along with the
procedure editor. Is there a key event like "ON ESC" that I can use to
handle this?
2) Because the program is run from the desktop it creates temporary files on
the desktop. Is there a way to direct these to a temp folder like maybe
vntgwork?
3) After the program is closed there remains one file on the desktop
rbrun.out. It looks like status info on how my report ran. Can I suppress
this file? Would it be one of the report engine parameters?
4) Does anyone have a sample of a simple error handeler to put into
procedures or triggers? Something like "on-error print err-msg".

TIA
Mark Dupuis
Ranor Inc.
Baby steps is misleading, I think you've made good progress. Get
it?. Good "Progress" ... get it? .............

*crickets*

OK, OK, I'll just stick to the subject....

1) I think you've created a dialog instead of a window. The 'Quit'
statement should still shut down the procedure editor. Try..
ON WINDOW-CLOSE OF FRAME FrameName Quit.

2, 3) My understanding is location defaults to the current working
directory. Try the '-T' parameter in the command line. (-T
c:\vntgwork)

4) Here's an error checking example, as used when compiling a
program...

compile value("c:\windows\desktop\ProgName.w") SAVE NO-ERROR.
IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
compilefail = compilefail + 1.
REPEAT j = 1 TO ERROR-STATUS:NUM-MESSAGES:
ErrorNumber = ERROR-STATUS:GET-NUMBER(j).
ErrorMessage = trim(ERROR-STATUS:GET-MESSAGE(j)," ").
end.
end.

Good luck,

Lonnie

--- In vantage@y..., "Mark Dupuis" <dupuism@r...> wrote:
> Hello 4GL'ers
> I have completed my first program. It's rather simple, it
gets a date from
> a user along with number of days and then runs a report using this
info in
> the filter. I have a desktop shortcut (Thanks Thaddeus) and a .pf
file with
> the database info. (Thanks Jim) When the program runs it creates
a .csv file
> on my desktop as planned. When the user clicks exit the program
closes
> along with the procedure editor. (Thanks Mark)
> Now I have a few more questions.
> 1) When the program is running my main frame lies within a
progress frame
> which displays "Enter data or press ESC to end" at the bottom.
When you
> press ESC the program closes but the progress login shows up along
with the
> procedure editor. Is there a key event like "ON ESC" that I can use
to
> handle this?
> 2) Because the program is run from the desktop it creates
temporary files on
> the desktop. Is there a way to direct these to a temp folder like
maybe
> vntgwork?
> 3) After the program is closed there remains one file on the
desktop
> rbrun.out. It looks like status info on how my report ran. Can I
suppress
> this file? Would it be one of the report engine parameters?
> 4) Does anyone have a sample of a simple error handeler to put
into
> procedures or triggers? Something like "on-error print err-msg".
>
> TIA
> Mark Dupuis
> Ranor Inc.
Lonnie, actually my progress has been very slow..... :)

1) My program only has one frame, defined as frame1. When I run the
program it appears as a child in a progress window. I would imagine I can
establish some GUI environment settings that would suppress the progress
window. I downloaded a reports.w file from the group site and when you open
the file with the procedure editor and press f2 the program starts clean, no
parent progress window behind it. I am not familiar with all the key words
being used. Before I dissect this program would you happen to have, in its
simplest form, code for an empty frame that when run with f2 is the only
thing that you see, no parent progress window. BTW What's the difference
between a .p and a .w file?

2) I tried the -T parameter in my shortcut and my .pf file in different
locations. Nothing changed. I still get the temp files defaulting to my
desktop.

3) Status file problem solved. I found by using prntrb2 instead of printrb
the last parameter will let me direct the status file to another location.

4) Thanks for the sample error check.

TIA
Mark Dupuis

-----Original Message-----
From: lonniedrew [mailto:lonniedrew@...]
Sent: Monday, January 14, 2002 4:35 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: 4GL Baby steps


Baby steps is misleading, I think you've made good progress. Get
it?. Good "Progress" ... get it? .............

*crickets*

OK, OK, I'll just stick to the subject....

1) I think you've created a dialog instead of a window. The 'Quit'
statement should still shut down the procedure editor. Try..
ON WINDOW-CLOSE OF FRAME FrameName Quit.

2, 3) My understanding is location defaults to the current working
directory. Try the '-T' parameter in the command line. (-T
c:\vntgwork)

4) Here's an error checking example, as used when compiling a
program...

compile value("c:\windows\desktop\ProgName.w") SAVE NO-ERROR.
IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
compilefail = compilefail + 1.
REPEAT j = 1 TO ERROR-STATUS:NUM-MESSAGES:
ErrorNumber = ERROR-STATUS:GET-NUMBER(j).
ErrorMessage = trim(ERROR-STATUS:GET-MESSAGE(j)," ").
end.
end.

Good luck,

Lonnie

--- In vantage@y..., "Mark Dupuis" <dupuism@r...> wrote:
Hello 4GL'ers
I have completed my first program. It's rather simple, it
gets a date from a user along with number of days and then runs a report
using this
info in the filter. I have a desktop shortcut (Thanks Thaddeus) and a .pf
file with the database info. (Thanks Jim) When the program runs it creates
a .csv file on my desktop as planned. When the user clicks exit the program
closes along with the procedure editor. (Thanks Mark)
> Now I have a few more questions.
> 1) When the program is running my main frame lies within a
progress frame which displays "Enter data or press ESC to end" at the
bottom.
When you press ESC the program closes but the progress login shows up along
with the procedure editor. Is there a key event like "ON ESC" that I can use
to handle this?
> 2) Because the program is run from the desktop it creates
temporary files on the desktop. Is there a way to direct these to a temp
folder like
maybe vntgwork?
> 3) After the program is closed there remains one file on the
desktop rbrun.out. It looks like status info on how my report ran. Can I
suppress this file? Would it be one of the report engine parameters?
> 4) Does anyone have a sample of a simple error handeler to put
into procedures or triggers? Something like "on-error print err-msg".
>
> TIA
> Mark Dupuis
> Ranor Inc.



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/
Mark,

I used ProVision AppBuilder to generate code for a window and added a
quit to close Procedure Editor. I'll upload it now. If you post a
message when you grab it, I'll remove from 'source code' section of
files.

About the -T parameter, this is the actual command line I tested
which placed the srt, lbi and RBOut files on desktop as directed..

F:\epic50\progress\bin\prowin32.exe vantage -q -N TCP -H Bdc_lon -S
epic50 -T c:\winnt\profiles\administrator\desktop -p
x:\inventor\catalog\c-win.w

Lonnie

--- In vantage@y..., "Mark Dupuis" <dupuism@r...> wrote:
> Lonnie, actually my progress has been very slow..... :)
>
> 1) My program only has one frame, defined as frame1. When I run
the
> program it appears as a child in a progress window. I would imagine
I can
> establish some GUI environment settings that would suppress the
progress
> window. I downloaded a reports.w file from the group site and when
you open
> the file with the procedure editor and press f2 the program starts
clean, no
> parent progress window behind it. I am not familiar with all the
key words
> being used. Before I dissect this program would you happen to
have, in its
> simplest form, code for an empty frame that when run with f2 is the
only
> thing that you see, no parent progress window. BTW What's the
difference
> between a .p and a .w file?
>
> 2) I tried the -T parameter in my shortcut and my .pf file in
different
> locations. Nothing changed. I still get the temp files defaulting
to my
> desktop.
>
> 3) Status file problem solved. I found by using prntrb2 instead of
printrb
> the last parameter will let me direct the status file to another
location.
>
> 4) Thanks for the sample error check.
>
> TIA
> Mark Dupuis
>
> -----Original Message-----
> From: lonniedrew [mailto:lonniedrew@c...]
> Sent: Monday, January 14, 2002 4:35 PM
> To: vantage@y...
> Subject: [Vantage] Re: 4GL Baby steps
>
>
> Baby steps is misleading, I think you've made good progress. Get
> it?. Good "Progress" ... get it? .............
>
> *crickets*
>
> OK, OK, I'll just stick to the subject....
>
> 1) I think you've created a dialog instead of a window. The 'Quit'
> statement should still shut down the procedure editor. Try..
> ON WINDOW-CLOSE OF FRAME FrameName Quit.
>
> 2, 3) My understanding is location defaults to the current working
> directory. Try the '-T' parameter in the command line. (-T
> c:\vntgwork)
>
> 4) Here's an error checking example, as used when compiling a
> program...
>
> compile value("c:\windows\desktop\ProgName.w") SAVE NO-
ERROR.
> IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
> compilefail = compilefail + 1.
> REPEAT j = 1 TO ERROR-STATUS:NUM-MESSAGES:
> ErrorNumber = ERROR-STATUS:GET-NUMBER(j).
> ErrorMessage = trim(ERROR-STATUS:GET-MESSAGE
(j)," ").
> end.
> end.
>
> Good luck,
>
> Lonnie
>
> --- In vantage@y..., "Mark Dupuis" <dupuism@r...> wrote:
> Hello 4GL'ers
> I have completed my first program. It's rather simple, it
> gets a date from a user along with number of days and then runs a
report
> using this
> info in the filter. I have a desktop shortcut (Thanks Thaddeus)
and a .pf
> file with the database info. (Thanks Jim) When the program runs it
creates
> a .csv file on my desktop as planned. When the user clicks exit
the program
> closes along with the procedure editor. (Thanks Mark)
> > Now I have a few more questions.
> > 1) When the program is running my main frame lies within a
> progress frame which displays "Enter data or press ESC to end" at
the
> bottom.
> When you press ESC the program closes but the progress login shows
up along
> with the procedure editor. Is there a key event like "ON ESC" that
I can use
> to handle this?
> > 2) Because the program is run from the desktop it creates
> temporary files on the desktop. Is there a way to direct these to
a temp
> folder like
> maybe vntgwork?
> > 3) After the program is closed there remains one file on the
> desktop rbrun.out. It looks like status info on how my report
ran. Can I
> suppress this file? Would it be one of the report engine
parameters?
> > 4) Does anyone have a sample of a simple error handeler to put
> into procedures or triggers? Something like "on-error print err-
msg".
> >
> > TIA
> > Mark Dupuis
> > Ranor Inc.
>
>
>
> 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/
Lonnie,
I have it. This is what I was looking for. I do not have AppBuilder. It
would of taken days for me to work out this code. Thanks.
Mark

-----Original Message-----
From: lonniedrew [mailto:lonniedrew@...]
Sent: Tuesday, January 15, 2002 10:39 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: 4GL Baby steps


Mark,

I used ProVision AppBuilder to generate code for a window and added a
quit to close Procedure Editor. I'll upload it now. If you post a
message when you grab it, I'll remove from 'source code' section of
files.

About the -T parameter, this is the actual command line I tested
which placed the srt, lbi and RBOut files on desktop as directed..

F:\epic50\progress\bin\prowin32.exe vantage -q -N TCP -H Bdc_lon -S
epic50 -T c:\winnt\profiles\administrator\desktop -p
x:\inventor\catalog\c-win.w

Lonnie

--- In vantage@y..., "Mark Dupuis" <dupuism@r...> wrote:
> Lonnie, actually my progress has been very slow..... :)
>
> 1) My program only has one frame, defined as frame1. When I run
the
> program it appears as a child in a progress window. I would imagine
I can
> establish some GUI environment settings that would suppress the
progress
> window. I downloaded a reports.w file from the group site and when
you open
> the file with the procedure editor and press f2 the program starts
clean, no
> parent progress window behind it. I am not familiar with all the
key words
> being used. Before I dissect this program would you happen to
have, in its
> simplest form, code for an empty frame that when run with f2 is the
only
> thing that you see, no parent progress window. BTW What's the
difference
> between a .p and a .w file?
>
> 2) I tried the -T parameter in my shortcut and my .pf file in
different
> locations. Nothing changed. I still get the temp files defaulting
to my
> desktop.
>
> 3) Status file problem solved. I found by using prntrb2 instead of
printrb
> the last parameter will let me direct the status file to another
location.
>
> 4) Thanks for the sample error check.
>
> TIA
> Mark Dupuis
>
> -----Original Message-----
> From: lonniedrew [mailto:lonniedrew@c...]
> Sent: Monday, January 14, 2002 4:35 PM
> To: vantage@y...
> Subject: [Vantage] Re: 4GL Baby steps
>
>
> Baby steps is misleading, I think you've made good progress. Get
> it?. Good "Progress" ... get it? .............
>
> *crickets*
>
> OK, OK, I'll just stick to the subject....
>
> 1) I think you've created a dialog instead of a window. The 'Quit'
> statement should still shut down the procedure editor. Try..
> ON WINDOW-CLOSE OF FRAME FrameName Quit.
>
> 2, 3) My understanding is location defaults to the current working
> directory. Try the '-T' parameter in the command line. (-T
> c:\vntgwork)
>
> 4) Here's an error checking example, as used when compiling a
> program...
>
> compile value("c:\windows\desktop\ProgName.w") SAVE NO-
ERROR.
> IF ERROR-STATUS:NUM-MESSAGES > 0 THEN DO:
> compilefail = compilefail + 1.
> REPEAT j = 1 TO ERROR-STATUS:NUM-MESSAGES:
> ErrorNumber = ERROR-STATUS:GET-NUMBER(j).
> ErrorMessage = trim(ERROR-STATUS:GET-MESSAGE
(j)," ").
> end.
> end.
>
> Good luck,
>
> Lonnie
>
> --- In vantage@y..., "Mark Dupuis" <dupuism@r...> wrote:
> Hello 4GL'ers
> I have completed my first program. It's rather simple, it
> gets a date from a user along with number of days and then runs a
report
> using this
> info in the filter. I have a desktop shortcut (Thanks Thaddeus)
and a .pf
> file with the database info. (Thanks Jim) When the program runs it
creates
> a .csv file on my desktop as planned. When the user clicks exit
the program
> closes along with the procedure editor. (Thanks Mark)
> > Now I have a few more questions.
> > 1) When the program is running my main frame lies within a
> progress frame which displays "Enter data or press ESC to end" at
the
> bottom.
> When you press ESC the program closes but the progress login shows
up along
> with the procedure editor. Is there a key event like "ON ESC" that
I can use
> to handle this?
> > 2) Because the program is run from the desktop it creates
> temporary files on the desktop. Is there a way to direct these to
a temp
> folder like
> maybe vntgwork?
> > 3) After the program is closed there remains one file on the
> desktop rbrun.out. It looks like status info on how my report
ran. Can I
> suppress this file? Would it be one of the report engine
parameters?
> > 4) Does anyone have a sample of a simple error handeler to put
> into procedures or triggers? Something like "on-error print err-
msg".
> >
> > TIA
> > Mark Dupuis
> > Ranor Inc.
>
>
>
> 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/



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/
OK 4GL'ers I have another question. What a surprise!
My 4GL runs fine from my desktop shortcut that points to a .pf on the
servers mapped drive W:. When I create this shortcut on another workstation
and run it the program starts ok. My GUI comes up and the user can make
entries in the fields. When he selects the run button I get this error:
"UNABLE TO INITIALIZE THE DATABASE ENGINE: MSGOPEN: UNABLE TO OPEN MESSAGE
FILE: PROMSGS".
This error is from the rb engine. I use prntrb2 in my program to create a
csv file. Does anyone have an idea of why I get this message? I hope this
is my last hurdle to get over.

BTW Lonnie the -T option seems to work for other 4GL programs I tried. My
guess is because I direct prntrb2 to output to my desktop it also sets this
as a default location.

Mark Dupuis
make sure the user has the progress client installed... That's usually the
problem when I get this error.
Can the user run custom report builder links from the vantage menu?

Thaddeus

-----Original Message-----
From: Mark Dupuis [mailto:dupuism@...]
Sent: Tuesday, January 15, 2002 1:54 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: 4GL Baby steps


OK 4GL'ers I have another question. What a surprise!
My 4GL runs fine from my desktop shortcut that points to a .pf on
the
servers mapped drive W:. When I create this shortcut on another workstation
and run it the program starts ok. My GUI comes up and the user can make
entries in the fields. When he selects the run button I get this error:
"UNABLE TO INITIALIZE THE DATABASE ENGINE: MSGOPEN: UNABLE TO OPEN MESSAGE
FILE: PROMSGS".
This error is from the rb engine. I use prntrb2 in my program to create a
csv file. Does anyone have an idea of why I get this message? I hope this
is my last hurdle to get over.

BTW Lonnie the -T option seems to work for other 4GL programs I tried. My
guess is because I direct prntrb2 to output to my desktop it also sets this
as a default location.

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/
I usually see this when there is an error in the shortcut (forgot the -pf when using a .pf file) or the hosts and services file.

Reinstall clientsetup?

Jim


Mark Dupuis wrote:

> OK 4GL'ers I have another question. What a surprise!
> My 4GL runs fine from my desktop shortcut that points to a .pf on the
> servers mapped drive W:. When I create this shortcut on another workstation
> and run it the program starts ok. My GUI comes up and the user can make
> entries in the fields. When he selects the run button I get this error:
> "UNABLE TO INITIALIZE THE DATABASE ENGINE: MSGOPEN: UNABLE TO OPEN MESSAGE
> FILE: PROMSGS".
> This error is from the rb engine. I use prntrb2 in my program to create a
> csv file. Does anyone have an idea of why I get this message? I hope this
> is my last hurdle to get over.
>
> BTW Lonnie the -T option seems to work for other 4GL programs I tried. My
> guess is because I direct prntrb2 to output to my desktop it also sets this
> as a default location.
>
> 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 -T parameter tells Progress where to store its temporary files (.lbi
.srt, as previously noted; there are sometimes others, depending on what
you are doing). If used, it should always point to a location on the
machine where the process is running. If -T is not used these files will
be created in the working directory specified in your start up icon.

The "Unable to open PROMSGS" error happens when the process can't find
the file which contains all of the Progress error messages. By default
this is $DLC/promsgs, where $DLC is where you installed Progress. You
can point to another location by setting the environment variable
PROMSGS before you start Progress. There is no startup parameter for
this one, since Progress needs to be able to find this file to report
problems before it starts processing the startup parameters.

There is, for all practical purposes, no difference between .p and .w
files. .p was the original extension used in the character world to
identify Program files. When the GUI world came along, the .w extension
was introduced to identify programs that were intended to run in the GUI
world (in those days Progress V7 supported MS Windows or x-Windows
Motif). However there is nothing that prevents you from creating GUI
programs, and giving them a .p extension, or character programs with a
.w. (Personally, I recommend sticking to the conventions).
--
/* ================================================================*/

Specialists in Progress Databases and Software since 1986

William E. Colls william@...
PROComputer Systems Tel 613 591 0079
67 Willow Glen Dr. Fax 613 591 3924
Kanata Ontario Canada www.procomsys.com
K2M 1T1