Hi all,
Hoping someone will be able to help me with this. i am trying to use a webservice to get the conversion rate between currencies. this is the service:
now i have manaed to get the service working with hard coded values:
but i want to be able to paramaterise it. i have tried casting, concatenating and trying to use new on the currency.currencyconvert method but nothing.
Can anyone help me? i want to be able to do something like:
Anyone got any ideas?
Thanks in advance
Tony
Hoping someone will be able to help me with this. i am trying to use a webservice to get the conversion rate between currencies. this is the service:
now i have manaed to get the service working with hard coded values:
Code:
CurrencyConvert.CurrencyConvertor currencyService = new CurrencyConvert.CurrencyConvertor();
currencyService.ConversionRate(Currency.CurrencyConvert.Currency.GBP, Currency.CurrencyConvert.Currency.USD);
but i want to be able to paramaterise it. i have tried casting, concatenating and trying to use new on the currency.currencyconvert method but nothing.
Can anyone help me? i want to be able to do something like:
Code:
CurrencyConvert.CurrencyConvertor currencyService = new CurrencyConvert.CurrencyConvertor();
string conFrom = "GBP";
string conTo = "USD";
currencyService.ConversionRate(conFrom,conTo);
Anyone got any ideas?
Thanks in advance
Tony