Passing parameters - currency

F

Felipe Bernal

Hi , i'm tryong to pass a parameter to a web service but
i get an error something like "..input string is not well
formatted...." i'm using this code..

Sub getAnswer(sender As Object, e As System.EventArgs)
dim aCurrencyConvertor as new CurrencyConvertor()
dim aDouble as Double
dim FromCurrency as Currency = bFromCurrency.Text
dim ToCurrency as Currency = bToCurrency.Text
aDouble = aCurrencyConvertor.ConversionRate
(FromCurrency, ToCurrency)
total.text = aDouble
End Sub

the problem is i don't know how to pass the parameters as
currency type, they are strings, currency codes (i.e.
USD, CAN, PEN)

i hope i can get some help here

Felipe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top