|
-
Apr 9th, 2006, 04:29 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] School Work
I have this exercise to do but im stumped at what else to do next.
We have to make a simple Currency converter, i get how to change the currency from US dollars to yen,euros, ans pesos but here is the tricky part,
the user types in the amount of US dollars they want converted but then the user has to type in Yen, Euro, Pasos in a text then when you hit convert i will convert it to what ever the user typed in the Currency text box,
but i dont no how to make the program read what the user typed in for currency. The teacher wants us to use the If..ElseIf..ElseIf statements and to display the answer in the lbloutput box is sapose to be displayed by using the String.Format method which i get.
lol here is all i got for the begining
VB Code:
Private Sub btnConvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvert.Click
Dim dollars As New Double
Dim amount As New Decimal
dollars = Val(txtValue.Text)
amount = Val(txtCurrency.Text)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|