30.04.2013 Views

1. Visual Basic - Curso completo teoria y practica

1. Visual Basic - Curso completo teoria y practica

1. Visual Basic - Curso completo teoria y practica

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Case 10 : MsgBox “Octubre”<br />

Case 11 : MsgBox “Noviembre”<br />

Case 12 : MsgBox “Diciembre”<br />

Case Else<br />

End Select<br />

MsgBox “Error de datos”<br />

Cabe destacar que Select Case también se puede utilizar de<br />

la siguiente manera:<br />

Dim X As Integer<br />

X = InputBox(“Ingrese X?”)<br />

Select Case X<br />

Case 1<br />

Case 2, 3<br />

MsgBox “X = 1”<br />

MsgBox “X = 2 o X = 3”<br />

Case 4 To 10<br />

Case Else<br />

End Select<br />

Estructura For . . . Next<br />

MsgBox “4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!