|
|
|
|
Most experienced Progress programmers have learned to avoid the 'of' keyword for joins involving their database tables, because it hides the conditions of the join from the reader, and Progress may choose different fields to join the tables than you expect. However, it is tempting to use, as a shorthand to listing the field(s) actually needed to join from one table to another in a where phrase. This enhancement solves that problem. It lets you write your code with 'of', but then converts it to the 'where' syntax when you run this program. Here's how it works. Write a line of code like this: for each Order of Customer: Execute the Of Expander with the cursor on the line of code containing the 'of' keyword, and the code is converted to this: for each Order where Order.cust-num = Customer.cust-num: To set this up, first download the file TTTEd4W.zip and unzip the file Expand-Of.p to your Progress working directory. Next, in Ed4W create a "Build Program" similar to this example. You may need to modify the command line to account for the directory where Progress resides, any startup parameters required by your application (for example you may need -ininame), and/or your Progress working directory.
Notes:
|
|
Copyright © 2005 Tim Townsend Technologies. All rights reserved. |