Documentos de Académico
Documentos de Profesional
Documentos de Cultura
modificado
Imports System.IO
'PROGRAMA DE MAIZ
Dim neto2, sub_total2, isr2, kilo_des2, kilos_p2, s_kilo_p2, t_neto2, t_kilo_des2, sub_tp2,
suma_imp_imp2 As Double
linea = UCase(producto.Text) & "," & Format(neto2, "00000000.00") & "," & Format(kilos_p2,
"00000000.00") & "," & Format(isr2, "00000000.00")
list.Items.Add(linea)
archivo.WriteLine(linea)
archivo.Flush()
End Sub
fe.Text = Date.Now
End Sub
Close()
Beep()
End
End Sub
Private Sub calculo_Click(sender As Object, e As EventArgs) Handles calculo.Click
kilo_des.Text = 0
kilos_p2 = Val(kilos.Text)
End If
End If
End Sub
borrar()
End Sub
clave.Text = ""
clave.Focus()
producto.Text = ""
kilos.Text = ""
hume.Text = ""
kilo_des.Text = ""
kilos_p.Text = ""
sub_total.Text = ""
isr.Text = ""
neto.Text = ""
End Sub
End Class
Programa para leer el archivo txt
Imports System.IO
Do
linea = objReader.ReadLine()
nombre_productor = datos(1)
End If
nombre.Text = nombre_productor
grid.Rows.Clear()
End If
objReader.Close()
End Sub
borrar()
End Sub
Close()
Beep()
End
End Sub
Private Sub generar_Click(sender As Object, e As EventArgs) Handles generar.Click
dia = Val(dia_fecha.Text)
mes = Val(mes_fecha.Text)
mes2 = "Marzo"
mes2 = "Mayo"
mes2 = "Junio"
End If
año = Val(año_fecha.Text)
cadena = dia & " de " & mes2 & " del " & año
fecha.Text = cadena
End Sub
pago.Text = ""
pago_letra.Text = ""
nombre.Text = ""
rfc.Text = ""
fecha.Text = ""
kilos_pagados = 0
importe_neto = 0
isr = 0
End Sub
flag = "N"
flag = "S"
Else
Else
End If
End If
Next paso
If Len(deci) = 1 Then
flag = "N"
If Val(numero) >= -999999999 And Val(numero) <= 999999999 Then 'si el numero esta dentro
de 0 a 999.999.999
b = Len(entero) - (paso - 1)
Case 3, 6, 9
Case "1"
Else
End If
Case "2"
Case "3"
Case "4"
Case "5"
Case "6"
Case "7"
Case "8"
Case "9"
expresion = expresion & "novecientos "
End Select
Case 2, 5, 8
Case "1"
flag = "S"
End If
flag = "S"
End If
flag = "S"
End If
flag = "S"
End If
flag = "S"
End If
flag = "S"
End If
End If
Case "2"
flag = "S"
Else
flag = "N"
End If
Case "3"
flag = "S"
Else
flag = "N"
End If
Case "4"
flag = "S"
Else
flag = "N"
End If
Case "5"
Else
flag = "N"
End If
Case "6"
flag = "S"
Else
flag = "N"
End If
Case "7"
flag = "S"
Else
flag = "N"
End If
Case "8"
flag = "S"
Else
flag = "N"
End If
Case "9"
If Mid(entero, b + 1, 1) = "0" Then
flag = "S"
Else
flag = "N"
End If
End Select
Case 1, 4, 7
Case "1"
If paso = 1 Then
Else
End If
End If
Case "2"
End If
Case "3"
End If
Case "4"
End If
Case "5"
End If
Case "6"
End If
Case "7"
End If
Case "8"
End If
Case "9"
End If
End Select
End Select
If paso = 4 Then
End If
End If
If paso = 7 Then
Else
End If
End If
Next paso
EnLetras = "menos " & expresion & "con " & deci ' & "/100"
Else
EnLetras = expresion & "con " & deci ' & "/100"
End If
Else
Else
EnLetras = expresion
End If
End If
Else 'si el numero a convertir esta fuera del rango superior e inferior
EnLetras = ""
End If
End Function
End Class