MichaelRed:
Thanks for the critic.
Yes, I guess I did not make myself clear:
If one uses the code on different locals, then it is best to query the system for the decimal seperator, otherwise, just supplying the constant is sufficient.
Even though one may have the country set to US, the decimal seperator may be something else (I often will leave the system set to the country that I am in, but change to a different local for dates and numbers).
Internationalization:
In the Choose function, just like in your functions, one would have to change the text to reflect a certain language, and, if this is to be used for several languages, one would have to set up a data source for the different languages and dump the the words into variables, using the variables to return the correct text.
While this may be possible in a few languages, it is impossible for others.
I do not see any real problem doing this between western european countries and U.S. languages though.
The constants for currency type (dollar, Euro, etc) would also have to be changed to reflect the local. Or is it better to also allow the user pass the Bills and Coins text (thinking of my own pocket which often has several currencies types in it)?
I need to consider what ways are best in dealing with this, if possible, and your code may be the better tool in implementing such a function for multi-locales usage.
>..few other odd words..."
Yesssss, I know...that's the problem with my english after being 22 years out of the U.S. (1/2 my life!) and living/visiting foreign countries all the time, primary language not English anymore except in these forums.....
JohnYingling: Now why didn't I think of that?!
Actually, I think I saw this somewhere long, long ago.....
100% reliable it isn't, but all countries which I have dealt with use one or the other (comma or dot as a thousands seperator), and if a error (13) occurs, then probaly because the user has been playing with the country settings and forgot to set it back. [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!