Basic - Mejor código en visual Basic...

 
Vista:

Mejor código en visual Basic...

Publicado por Alejandra (3 intervenciones) el 12/04/2006 17:07:12
Buenos Días
Por favor Necesito mejorar este código.....

Dim iPrimerValor As Long, iSegundoValor As Long, iTercerValor As Long

Private Sub Form_Load()
Text1.Text = ""
iPrimerValor = 1
iSegundoValor = 1
iTercerValor = 0
Text1.Text = iPrimerValor
Text1.Text = Text1.Text & "-" & iSegundoValor
End Sub

Private Sub Command1_Click()
If iTercerValor < 1830000000 Then
iTercerValor = iPrimerValor + iSegundoValor
Text1.Text = Text1.Text & "-" & iTercerValor
iPrimerValor = iSegundoValor
iSegundoValor = iTercerValor
Else
MsgBox "Soy Long, no resisto tanto!", vbExclamation, "Error!"
End If
End Sub
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Esta's en Basics para Ms-dos

Publicado por Fumador (15 intervenciones) el 13/04/2006 06:22:27
============
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar