0% found this document useful (0 votes)
55 views1 page

'Declaracion de Variables: Form1 Object Eventargs

This document contains code for a program with three buttons that performs calculations. It declares variables to store a number input by the user, an array to hold calculation results, and loop variables. Button1 loops through multiplying the input number by indexes 0 through 12 and stores the results in the array and text box. It concludes by displaying the final product. Button2 does nothing. Button3 clears the text boxes to allow for new input.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views1 page

'Declaracion de Variables: Form1 Object Eventargs

This document contains code for a program with three buttons that performs calculations. It declares variables to store a number input by the user, an array to hold calculation results, and loop variables. Button1 loops through multiplying the input number by indexes 0 through 12 and stores the results in the array and text box. It concludes by displaying the final product. Button2 does nothing. Button3 clears the text boxes to allow for new input.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.

Click 'DECLARACION DE VARIABLES Dim N As Integer, X() As Double, I As Single Dim PROD As Single Dim NUMERO As Single Dim F As Single 'LECTURA DE DATOS NUMERO = Val(TextBox2.Text) ReDim X(0 To 12) N = 12 For I = 0 To N PROD = NUMERO * I TextBox1.Text = TextBox1.Text & "X(" & I & ")= " & PROD & vbCrLf Next I

TextBox1.Text = TextBox1.Text & "PRODUCTO= " & PROD & vbCrLf End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click End End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.Text = "" TextBox2.Text = "" TextBox2.Focus() End Sub End Class

You might also like