AnthonyMillard1
New Member
Hello all and hope you can help
I work on an existing Progress 91C application which has 1,000's of viewers; most with numerical fields which by application formats into the currency format of the users choice.
All decimal fields are defined at zz,zzz,zzz,zz9.99, but before the fields are populated the viewer looks up the currency definition that the customer wants and reformats the field to their settings;
therefore it may be displayed as
STR-zz,zzz,zzz,zz9.99
(USDzz,zzz,zzz,zz9.99)
£zz,zzz,zzz,zz9.99-
etc..
However, we have hit a major issue with a new installation in New Zealand and they want to use the currency abbreviation of
NZD; and have it appear before the value so the resulting numerical formatting is
NZD-zz,zzz,zzz,zz9.99
With this; when display any values Progress returns an error of
"Character number 3 of format NZD-zz,zzz,zzz,zz9.99 is invalid. (22)"
Which I suspect is the Z of NZD confusing Progress to think its the start of the numerical format and therefore raises an error on the D.
I know Z and z are not allowed in the Trailing and Leading string text; but I am left with how can I solve the issue.
Does anyone know of any way into tricking the system to ignore the first Z if its clearly part of the leading test and not the number formatting.
As NZD is the ISO standard for currency abbreviation for New Zealand Dollars they are unwilling to use anything else.
Thanks in advance
Anthony Millard
I work on an existing Progress 91C application which has 1,000's of viewers; most with numerical fields which by application formats into the currency format of the users choice.
All decimal fields are defined at zz,zzz,zzz,zz9.99, but before the fields are populated the viewer looks up the currency definition that the customer wants and reformats the field to their settings;
therefore it may be displayed as
STR-zz,zzz,zzz,zz9.99
(USDzz,zzz,zzz,zz9.99)
£zz,zzz,zzz,zz9.99-
etc..
However, we have hit a major issue with a new installation in New Zealand and they want to use the currency abbreviation of
NZD; and have it appear before the value so the resulting numerical formatting is
NZD-zz,zzz,zzz,zz9.99
With this; when display any values Progress returns an error of
"Character number 3 of format NZD-zz,zzz,zzz,zz9.99 is invalid. (22)"
Which I suspect is the Z of NZD confusing Progress to think its the start of the numerical format and therefore raises an error on the D.
I know Z and z are not allowed in the Trailing and Leading string text; but I am left with how can I solve the issue.
Does anyone know of any way into tricking the system to ignore the first Z if its clearly part of the leading test and not the number formatting.
As NZD is the ISO standard for currency abbreviation for New Zealand Dollars they are unwilling to use anything else.
Thanks in advance
Anthony Millard