VB.NET Code Examples for Arrays and Timer Controls
Classified in Computers
Written on in
English with a size of 2.92 KB
Weight Calculation and Session Management in VB.NET
This example demonstrates how to handle weight data using arrays and manage application sessions with timers.
Public Class Form1
Dim PESOPERSONA(1) As Integer
Dim PESOTOTAL As Integer
Private Sub Form1_Load(...)
Me.Text = "CÁLCULO DE PESO"
Label1.Text = "RESULTADO"
Label2.Text = "" & vbCrLf
PESOPERSONA(0) = 105
PESOPERSONA(1) = 55
For i = 0 To 7
If PESOPERSONA(i) < 10 Or PESOPERSONA(i) > 100 Then
Label2.Text = Label2.Text & "EL DATO DE PESO " & i & " no es válido por no estar entre 10 y 100 " & vbCrLf
Else
PESOTOTAL = PESOTOTAL + PESOPERSONA(i)... Continue reading "VB.NET Code Examples for Arrays and Timer Controls" »