Currency Edit

Kenneth Brody kenbrody at bestweb.net
Wed Oct 19 12:15:26 PDT 2005


Quoting Robert Van Nortwick (Wed, 19 Oct 2005 13:45:03 -0500):

> Experts,
>
> I have need of an edit that displays the $, commas between every 3
> digits and the decimal with cents.  According to the filePro online
> manual that would be the $ edit.  When I try to use the $ edit it
> gives me the $ sign and the decimal places, but no commas.  Does
> anyone have the format for such an edit so that I could copy and
> paste one to my global edits?

Take the "euronum" edit I posted to this list a while back (the one
which did European numbers, with "," and "." usage swapped from the
American method), put the "," and "." back to American, and add an
accept-or-supply "$" at the start:

comma$   \ <$> ( N N N comma$2 | N N comma$2 | N comma$2 )
comma$2  [{ <,> N N N }] ( <.00> @ | "." NUM NUM )

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list