School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,154 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,963 people online right now. Registration is fast and FREE... Join Now!



Currency Converter Help.

Currency Converter Help. How do you continue the code? Rate Topic: -----

#1 cvh0573  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 07-January 09


Dream Kudos: 0

Posted 14 January 2009 - 05:03 PM

Here is my code
Private Sub Command1_Click()

If (Us.Text = True) Then
Can.Text = (1.5 * Us.Text)
Jap.Text = (1.5 * Us.Text)
Mex.Text = (1.5 * Us.Text)
Ind.Text = (1.5 * Us.Text)
Aus.Text = (1.5 * Us.Text)
End If


It convert Us dollars to 5 different currencies. My problem is how do I make it so that it can convert Canadian dollars to Us, Jap, Mex and so on. And I know that the conversion rates are incorrect.
Was This Post Helpful? 0
  • +
  • -


#2 Fuzz_Bullet  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 25
  • Joined: 30-November 08


Dream Kudos: 0

Posted 15 January 2009 - 09:33 AM

You'd just be reversing the numbers
Us.Text = (Can.Text / 1.5)
Us.Text = (Jap.Text / 1.5)
Us.Text = (Mex.Text / 1.5)
Us.Text = (Ind.Text / 1.5)
Us.Text = (Aus.Text / 1.5)


All it was a lil math ;)
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month