Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Visual Basic Programs for MCA

Visual Basic Programs for MCA

Ratings: (0)|Views: 480|Likes:
Published by Gaurav Saxena
This Doc Is 4 MCA & other students...of Computer Aplication...!!!
This Doc Is 4 MCA & other students...of Computer Aplication...!!!

More info:

Published by: Gaurav Saxena on Nov 29, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/18/2012

pdf

text

original

 
Dim Operand1, Operand2 As DoubleDim Operator As StringDim ClearDisplay As BooleanPrivate Sub ClearBttn_Click()Display.Caption = ""End SubPrivate Sub Digits_Click(Index As Integer)If ClearDisplay ThenDisplay.Caption = ""ClearDisplay = FalseEnd If Display.Caption = Display.Caption + Digits(Index).CaptionEnd SubPrivate Sub Div_Click()Operand1 = Val(Display.Caption)Operator = "/"Display.Caption = ""End SubPrivate Sub DotBttn_Click()If ClearDisplay ThenDisplay.Caption = ""ClearDisplay = FalseEnd If If InStr(Display.Caption, ".") ThenExit SubElseDisplay.Caption = Display.Caption + "."End If End SubPrivate Sub Minus_Click()Operand1 = Val(Display.Caption)Operator = "-"Display.Caption = ""End SubPrivate Sub Over_Click()If Val(Display.Caption) <> 0 Then Display.Caption = 1 / Val(Display.Caption)End SubPrivate Sub Plus_Click()Operand1 = Val(Display.Caption)
Program No. : -
1
Name: -
Gaurav Saxena
Roll No. : -
1308727
Class: -
MCA (3
rd
Sem.)
Page No. :-
 _______ 
Statement: -
Write a program to design a calculator using Control Array.
 
Operator = "+"Display.Caption = ""End SubPrivate Sub PlusMinus_Click()Display.Caption = -Val(Display.Caption)End SubPrivate Sub Times_Click()Operand1 = Val(Display.Caption)Operator = "*"Display.Caption = ""End Sub
 
INPUT AND OUTPUT:-
 
Private Sub Command1_Click()Dim a As Single, b As Singlea = CSng(Text1.Text)If (Option1.Value = True) ThenIf (Option5.Value = True) Thena = aText2.Text = aElseIf (Option6.Value = True) Then b = a / 46Text2.Text = bElseIf (Option7.Value = True) Then b = a / 55Text2.Text = bElseIf (Option8.Value = True) Then b = a / 70Text2.Text = bEnd If End If End If End If End If If (Option2.Value = True And Option5.Value = True) Then b = a * 46Text2.Text = bEnd If If (Option2.Value = True And Option6.Value = True) Then b = aText2.Text = bEnd If If (Option2.Value = True And Option7.Value = True) Then b = a * 1.19Text2.Text = bEnd If If (Option2.Value = True And Option8.Value = True) Then b = a * 1.34Text2.Text = bEnd If 
Program No. : -
2
Name: -
Gaurav Saxena
Roll No. : -
1308727
Class: -
MCA (3
rd
Sem.)
Page No. :-
 _______ 
Statement: -
Write a Program to design an interface using option buttons & frame control for Currency Conversion System.

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
guptavikas411198 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->