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/