Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From dollars ($) to Euro
Message
From
10/09/2014 10:27:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/09/2014 05:47:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01607194
Message ID:
01607308
Views:
46
>>>My app is made to work with $
>>>
>>>I will have to update it so it can work with $ and also Euro. Any tips so I don't suffer too much on this ;-)
>>>
>>>What is the character for Euro that I can use to replace $?
>>
>>For the data structures, I would suggest an amount field, and a field for the currency. That way, you can easily expand to more currencies later. Ideally, the currency field would be a foreign key to a currency table.
>
>And the exchange rate is a historic information, i.e. needs to be recorded with the transaction, or to be retrieved from another table with rates and dates. Keeping only the current rate in a lookup is not going to work.

Right, I forgot to mention that. - Actually, I was mainly thinking about the "alternative", which I often saw here in Bolivia - programmers tend to use one field for the amount in the country currency ("bolivianos"), and another field for the amount in US-dollars... which makes the system quite inflexible when it comes to adding additional currencies, such as the Euro, yen, etc., the currency of some neighboring countries, or perhaps some future Southamerican currency union. Which they may, or may not, need in the future. Currently, it is customary to use only those two currencies - the country's currency, and "foreign currency" which is slang for US-dollar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform