Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Code: |
LINE 01 +
LINE-ITEM-1 +
LINE-ITEM-2 +
LINE-ITEM-3 +
LINE-ITEM-4 +
LINE-ITEM-5 +
LINE-ITEM-6 +
LINE-ITEM-AMT
|
In the above you have six line items, say names, dates, whatever, and one field which Easytrieve is going to keep a total of (by default, it will SUM anything on the LINE which has decimal places (even zero decimal places, if explicitly defined).
Now, in a report procedure, I want to put some comment and the total. I want the comment under LINE-ITEM-3 and the total under LINE-ITEM-AMT.
So, I use POS 3 (the third position on the LINE statements) and POS 7 (the seventh position).
In your program, we got up to POS 8 so quickly, because of all the delimiters. If you reduce the POS by one and run again, you'll see the totals trying to line up with a delimiter. Now you have it, practice. |
|