Visual Basic - MSGBOX

Life is soft - evento anual de software empresarial
 
Vista:

MSGBOX

Publicado por dansan (53 intervenciones) el 19/06/2006 15:47:27
HOLA:

UNA CONSULTA QUIZAS MUY TRIVIAL PARA USTEDES PERO..., COMO PUEDO SABER EL BOTON QUE PULSO EL USUARIO POR EJEMPLO TENGO UN MSGBOX CON LOS BOTONES SI Y NO PERO COMO HAGO PARA QUE SI PULSA SI HAGA UNA ACCION DETERMINADA Y SI PULSA NO HAGA OTRA.

SALUDITOS
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

RE:MSGBOX

Publicado por Vincent (1 intervención) el 19/06/2006 19:39:21
Private Sub Command1_Click()
Dim r As Integer
r = MsgBox("pulsa algo", vbYesNo, "Prueba")
If r = vbYes Then
MsgBox "has pulsado Sí"
Else
MsgBox "Has pulsado No"
End If
End Sub
Salut
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

RE:MSGBOX

Publicado por dansan (53 intervenciones) el 20/06/2006 17:24:30
grax funcionó.

saludos
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