Results 1 to 5 of 5

Thread: Vb.net 2005 Currency Converter that updates

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    208

    Vb.net 2005 Currency Converter that updates

    Hi all

    I have not made this look good yet, but it does work. Str4nger helped me do the updating of the rates from a website. I had been looking for something like this for ages before but there was not any that updated the currency rate, so I made one.

    Sam
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Jan 2007
    Posts
    24

    Re: Vb.net 2005 Currency Converter that updates

    Thnx it helped me alot

  3. #3
    New Member
    Join Date
    Feb 2007
    Posts
    2

    Re: Vb.net 2005 Currency Converter that updates

    What about a converter that goes between 10 different currencies, being able to convert from any one of the 10 currencies to any of the remaining nine. I'm having trouble doing this, been trying an array but have been stumped for a while on how to get it done? Any ideas/help?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    208

    Re: Vb.net 2005 Currency Converter that updates

    Right ok what you would want is two group boxes right both with the 10 currencys in as radio buttons.

    Then you could click 1 currency in left group and then it should disappear from the right group and then you click currency you want to convert to.

    What I would do is have two string variables:
    eg
    Dim first as string
    dim second as string

    Then when a radio button is clicked in the 1st group box the first string equals what currency it is so:

    If you click US Dollars it will equal USD

    and then you will do the same in the next group box

    If you click Pounds second will equal GBP

    So instead of having different procedures for converting to 1 currency you will only need the button click procedure, which will have the code like this:
    VB Code:
    1. Dim strNumbers1() As String
    2.         Dim seps1(1) As String
    3.         Dim intX1 As Integer
    4.         Dim rate As Integer
    5.        
    6.         seps1(0) = "/d/" & first & "/" & second & "/graph120.html" & Chr(34) & " class=" & Chr(34) & "menu" & Chr(34) & ">"
    7.         seps1(1) = "</a>&nbsp;&nbsp;</font></td>"
    8.  
    9.         strNumbers1 = strSource.Split(seps1, StringSplitOptions.None)
    10.         For intX1 = 0 To UBound(strNumbers1)
    11.             If Len(strNumbers1(intX1)) < 9 Then
    12.                 rate = strNumbers1(intX1)
    13.  
    14.             End If
    15.  
    16.   input = txtinput.Text
    17.             output = input / rate
    18.             txtoutput.Text = output
    19.         Next


    I havent test this at all it is off the top of my head so cannot gurantee anything, I will try to get an example out but very busy at the mo.

    Thanks

    Sam

  5. #5
    New Member
    Join Date
    Feb 2007
    Posts
    2

    Re: Vb.net 2005 Currency Converter that updates

    Thanks, I'll let you know how this works out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width