Nested Functions
Darren Reely
darren_reely@latticesemi.com
Tue, 22 Jun 1999 10:43:39 -0700
Pickering, John (NORBORD) wrote:
> The formatnumber function is a Compaq version only nicety. It isn't in the
> 8.xx versions. But perhaps one of the benefits to the rest of us of
> "Compaqising" version 8 is that Cognos will need to add it to the "common
> code stream" 8.x0 version (in order to get Compaq users to accept it) and
> then we'll all have it!
>
> It seems to me that adding new functions to PH must be one of the simplest
> kinds of enhancements. Since they're new there's no old syntax to break and
> no compatibility with old versions to test. Just do it!
>
> And a formatdate function as suggested by Chris would remove so many lines
> of my code that I might be compelled to raise my dollars per line of code
> rates :-)
>
> How many times have you coded something like the following? Sigh :-(
>
> DEFINE D-RPT-TITLE CHAR*45 &
> = "Issues by Equipment from " &
> + ASCII(D-FROM-DATE OF MMF195,8)[3:2] + "/" &
> + ASCII(D-FROM-DATE OF MMF195,8)[5:2] + "/" &
> + ASCII(D-FROM-DATE OF MMF195,8)[7:2] &
> + " to " &
> + ASCII(D-TO-DATE OF MMF195,8)[3:2] + "/" &
> + ASCII(D-TO-DATE OF MMF195,8)[5:2] + "/" &
> + ASCII(D-TO-DATE OF MMF195,8)[7:2]
In the current code base I support:
Occurances Source Total Source
Qdesign 23 17 445
Quiz 142 29 125
It occurs often in quiz because of headings we want full control over
that may not even contain a date at times. Although I can't think
how often I've seen a user use that option. Our heading could be like:
Date Range: 12/27/98 to 01/03/99 or Date Range: ALL
A formatdate function would be a great addition to see. As long as it
could handle all the current FORMATs allowed.
Darren
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.