Your code below worked a treat. I did treat other suggestion but
they only gave me one decimal place.
However, I have had to put it as straight code rather than as a
handler due to the fact that I get the error: Can't continue
currency_format.
I had written the call to the handler as follows:
set strCatBSP to currency_format(strCatBSP)
I have tried to call the handler will being within 'tell
application "Finder"' and 'tell application 'MacSQL3"', just in
case this made a difference. Does it?
Yes, David - a slight different syntax is needed when calling a
script handler from within an application tell statement. In this
case, for example, Finder doesn't understand the expression
'currency_format(strCatBSP)' and throws an error. To tell it to
redirect the call back to the script (which will understand it),
qualify it with something like 'my' or 'of me':
-------------
set strCatBSP to my currency_format(strCatBSP)
-------------
Or:
-------------
set strCatBSP to currency_format(strCatBSP) of me
-------------
However, since the handler in this case contains just a single line,
there's no real need for a separate handler - and using the line
within the main code should be just fine... :-)