Discussion Locked

currency conversion

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a Visual Basic 6.0 project which will convert currency between US dollar, Japanese yens, UK pounds, and Korean won. When the currency is converted to another country's currency, I'd like to show the currency signs of that country automatically. Is there any built-in functions in VB6.0 I can use or I have to find anther way? How?

Thanks.

5 replies

by limbo

I would be surprised if there was. Consider the datatype required to maintain numeric values with currency symbols, and you'll find the answer. Not even an RDBMS has this as a standard datatype.

So define your own TYPE:

Public Type CurrencyValue
Value AS Double
Currency AS String
End Type

Then each numeric value can be bound to a currency explicitly.

by rsv

HI,
Based on the selected country, concat that country's currency symbol/sign to the output currency value.

GOOD LUCK

This discussion is closed to new replies.