Posted by Jessica on Thursday, January 31, 2013 at 9:38am.
what does IntTemp and IntRem mean? and whats wrong with my code, i dont know whats wrong with it...
Dim intNum As Integer 'the numderator is read as a whole number.
Dim intDenom As Integer 'the denominator is read as a whole number.
Dim inttemp As Integer
Dim intrem As Integer
Private Sub bntReduce_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bntReduce.Click
intNum = Val(txtinputA.Text) 'the Val statement is, if there is a letter placed into the text box, the code wont break,
intDenom = Val(txtinputB.Text) 'the Val statement is, if there is a letter placed into the text box, the code wont break,
MessageBox.Show("Fraction can not be reduced", MsgBoxStyle.YesNo) 'when someone types in a two numbers, and the numbers can not be reduced this message box shows up saying that the numbers can reduce, and to try again.
Call Reduce(intNum, intDenom) 'this is used to call the public sub below.
lbloutput.Text = inttemp
Public Sub Reduce(ByVal intnum As Integer, ByVal intDenom As Integer)
intrem = intnum
inttemp = intDenom
intnum = inttemp
Loop While intDenom <> 0
intrem = intnum
Answer this Question
visual basic - in visual basic, a routine that puts a series of strings or ...
visual basic - in visual basic, notes in a program which explain what the ...
visual basic (answer: comments) - Hi Jon! Isn't Remarks the correct term for ...
Programming (Visual Basic) - Im seem to be having trouble with this Exercise. ...
visual basic - (1) state the condition under which a FOR-TO-NEXT loop will not ...
event driven programming - 8. Write a visual basic program that accepts basic ...
Visual Basic (Computer) - What is programming language syntax? Why is it ...
Visual Basic - How do I display 1/2 as a signle character in a text box?
Basic English Literature Terms Help - 1.)What is indirect and direct ...
visual basic - a routine that puts a series of strings or numbers in order is ...