Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function ToWords Crystal 8

Status
Not open for further replies.

Broute

Programmer
Oct 20, 2003
2
CA
Hi guys,

I need to translate an amount in letters, in english and in spanish depending on the currency.
As I get the english version of crystal the amount is properly translated in english with the function ToWords. But I cannot get the translation in spanish unless I install the spanish version of Crystal, in which case I will loose the english translation.
Do you know if there is a way to do that or should I write the whole function by myself ?

Thanks.
 
You could use what you have to get the words in English. Then use 'replace' to change the relevant words to their Spanish equivalent.

Madawc Williams
East Anglia, Great Britain
 
Thanks for answering quickly. But, it seems that the logic is different. If I have 100, it becomes one hundred in english and cien in spanish. 500 becomes five hundreds, or quinientos in spanish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top