=================================Slip10_2===================================
Write a
VB program for currency conversion. The program should input the amount in any
currency and the output should be displayed in the desire currency as selected
by the user. An input form should accept all the currency rates. The various
currencies are rupee, dollar, pound and euro.
(Use textbox control for input and to display output also) ==========================================================================
Dim pound As Integer
Dim dollar As Integer
Dim euro As Integer
Private Sub cmdConvert_Click()
If Option1.Value =
True Then
Label2.Caption
= "Dollar"
Text2.Text
= Val(Text1.Text) / dollar
ElseIf
Option2.Value = True Then
Label2.Caption
= "Pound"
Text2.Text
= Val(Text1.Text) / pound
ElseIf
Option3.Value = True Then
Label2.Caption
= "Euro"
Text2.Text
= Val(Text1.Text) / euro
Else
MsgBox
("Select Conversion type")
End If
End Sub
Private Sub cmdRates_Click()
pound =
Val(InputBox("Enter Rate of pound"))
dollar =
Val(InputBox("Enter Rate of Dollar"))
euro =
Val(InputBox("Enter Rate of euro"))
cmdConvert.Enabled
= True
End Sub
Private Sub Form_Load()
cmdConvert.Enabled
= False
End Sub
The info is good enough.I preview this type of good article only. Good job
ReplyDeleteDOT NET Training in Chennai
.Net coaching centre in chennai
Dot Net Training in Tambaram
Html5 Training in Chennai
Html5 Training Course
QTP Training in Chennai
SAS Training in Chennai
DOT NET Training in Chennai
This is a very helpful blog for one who needs to learn in a short span of time.
ReplyDeleteSpoken English Classes in Chennai
Best Spoken English Classes in Chennai
Spoken English Class in Chennai
Spoken English in Chennai
English Speaking Classes in Mumbai
English Speaking Course in Mumbai
IELTS Coaching in Chennai
IELTS Coaching Centre in Chennai
IELTS Classes in Mumbai
IELTS Coaching in Mumbai