Professional Documents
Culture Documents
Environment
Notes
Introduction
In this lab you set the PROPATH so the 4GL at runtime knows where to find your
files. It is very important to set the PROPATH correctly so that your lab files will run
properly for the rest of this course.
Duration
This lab should take about 5 minutes to complete.
1. [current directory]
2. ..4GLE\Labs
3. ..4GLE\Solutions
4. ..4GLE\Examples
Introduction
In this lab you use the Procedure Editor to open and run a file. You also create and
save two new files, and switch between file buffers.
Duration
This lab should take about 10 minutes to complete.
Question: What is the difference between the appearances of the output for these two
statements?
3. Add a comment to the file that says what the procedure does.
4. Check your syntax.
5. Run the procedure.
6. Save the file as lMyName.p in your Labs directory.
Objectives
In this lab you explore on-line Help and learn how to search for information about the
4GL tools and language.
Use on-line Help as needed as you learn how to build applications and write 4GL
code.
Duration
This lab should take about 15 minutes to complete.
A: Reference Help
B: Application Help
C: Technical Whitepapers
D: Online Manuals
What is the TODAY function used for in the sample procedure r-today.p,
shown in on-line Help?
9. Select “date addition.” What is the code in the example that adds days to a date?
1. [current directory]
2. ..4GLE\Labs
3. ..4GLE\Solutions
4. ..4GLE\Examples
Answer: Choose OK in the PROPATH Editor, then choose Yes to save your changes
for future sessions.
Question: What is the difference between the appearances of the output for these two
statements?
Answer:
• DISPLAY generates a message that is overlaid on top of the procedure editor.
• MESSAGE…VIEW-AS ALERT-BOX displays the message in a dialog box
which includes an OK button and a Windows close (X) in the top right corner.
Note: Dialog boxes will be described in a later lesson.
/* sMyName.p */
/* This procedure displays a message with the author's name. */
/* sYear.p */
/* This program displays the current year. */
Answer: You should see four buffers listed, including the blank initial buffer.
Objectives
In this lab you explore on-line Help and learn how to search for information about the
4GL tools and language.
Use on-line Help as needed as you learn how to build applications and write 4GL
code.
A: Reference Help
Answer: /* comment */
B: Application Help
Answer:
• Connecting a database
• Creating a database
• Disconnecting a database
• Saving changes to a database
• Switching to another connected database
• Viewing database properties
C: Technical Whitepapers
D: Online Manuals
What is the business purpose with the way that the TODAY function is used in
the sample procedure r-today.p, shown in on-line Help?
Answer: It prints the date on the first line at the top of each page of a report.
9. Select “date addition.” What is the code in the example that adds days to a date?
Answer: date + days
Answer: To display the menu bar on the palette, place the mouse pointer over an
icon on the palette and press the right mouse button, then select Menu Bar.