7
« en: Martes 27 de Octubre de 2009, 13:16 »
un ejemplo en la tabla de nomina (parafiscal)
Private Sub Command1_Click()
Const ccf = 0.04
Const icbf = 0.03
Const sena = 0.02
Text5.Text = Val(Text8.Text) * ccf
Text6.Text = Val(Text8.Text) * icbf
Text7.Text = Val(Text8.Text) * sena
Text4.Text = (Val(Text5.Text) + Val(Text6.Text) + Val(Text7.Text))
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text4.Text = ""
Text8.SetFocus
End Sub
tienes que tener en cuenta que se puede declar dim o no en este caso estoy declarando con const la constante.
variable dim
dim apellido
apellido="gomez"
label4.caption apellido
end sub
sin dim
apellido="bustamante"
nombre=""jonathan"
fue un placer colaborarte