Visual Basic - Como configurar boton cancelar de una inputbox

Life is soft - evento anual de software empresarial
 
Vista:

Como configurar boton cancelar de una inputbox

Publicado por javier roncero (23 intervenciones) el 18/05/2003 11:58:52
Necesito saber como configurar el boton "cancelar" de una inputbox.
Necesito saber cual de los dos botones que saca la inputbox ha sido pulsado independientemente del texto que ponga.

Gracias
Un saludo
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:Como configurar boton cancelar de una inputbox

Publicado por Cecilia Colalongo (3116 intervenciones) el 18/05/2003 13:25:14
Según la MSDN: "When both helpfile and context are provided, the user can press F1 to view the Help topic corresponding to the context. Somehost applications, for example, Microsoft Excel, also automatically add a Help button to the dialog box. If the user clicks OK or presses ENTER , the InputBox function returns whatever is in the text box. If the user clicks Cancel, the function returns a zero-length string ("")."

Si presiona ENTER o Aceptar devuelve el texto ingresado, si presiona cancelar devuelve vbNullString.
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