SlideShare una empresa de Scribd logo
Programación Aplicada
PET 211
MSc. Luz Diana Torrez C.
Santa Cruz -Bolivia
CUADROS DE DIALOGO
InputBox
(titulo)
(aviso)
Cuadro de Dialogo (InputBox)
4
• Un cuadro de entrada o cuadro de Dialogo (InputBox) es un cuadro
de diálogo predeterminado
• El InputBox se usa para una sola entrada
• Utilizar cuadros de texto (TextBox) para varias entradas
Cuadro de Dialogo (InputBox)
Sintaxis
InputBox (prompt, title)
• Prompt: El mensaje o AVISO que aparece en el interior del
cuadro de diálogo
• Title: El título del texto aparece en la barra de título del
cuadro de diálogo.
• Los paréntesis son necesarios!!!
5
InputBox (prompt, title)
Cuadro de Dialogo (InputBox)
Sintaxis
InputBox (prompt, title)
• API = val(InputBox (“Introduzca API”, “API”) )
Usando la Variable API
• Gec = 141.5 /(API+131.5)
• Label2.Text = Math.Round ( Gec, 2)
6
InputBox (prompt, title)
Función:
• Val()
• Math.Round()
Cuadro de Dialogo (InputBox)
• Ejemplo : Asignando a una variable el valor de texto
ingresado usando un InputBox ( cuadro de entrada)
7
StrVariable1 = InputBox (mensaje, titulo)
Cuadro de Dialogo (InputBox)
• Ejemplo2: Asignando a una variable el valor numérico ingresado
usando un InputBox
SingVariable2 = Val (InputBox("mensaje", "titulo"))
• El contenido de un cuadro del InputBox se debe convertir en un
número antes de asignarse a una variable numérica
• Val () convierte la cadena de entrada en un número.
8
MessageBox
Cuadro de Mensaje (MessageBox)
10
• Utilice los cuadros de mensaje para llamar la atención del usuario
• Genera un mensaje de salida
• Un cuadro de mensaje también es un cuadro de diálogo
predeterminado
Cuadro de Mensaje (MessageBox)
• Mensaje: Texto a exhibir en el cuadro de mensaje
• MsgBoxStyle: Estilo de exhibición del MessageBox
es opcional, puede dejarse vacío (,,)
• Title: El título del texto aparece en el Cuadro de
Mensaje . Es opcional!!
11
MsgBox(Mensaje, MsgBoxStyle, "TITLE")
Sintaxis
Cuadro de Mensaje- MsgBoxStyle
 vbCritical señal de error
 vbExclamation señal de advertencia
 vbInformation señal de información
 vbQuestion señal de interrogación
 vbOkOnly botón de aceptar
 vbOkCancel botones aceptar y cancelar
 vbYesNo botones Sí y No
 vbYesNoCancel botones Sí, No y Cancelar
 vbAbortRetryIgnore botones Anular, Reintentar y Omitir
Cuadro de Mensaje- MsgBoxStyle
 vbCritical señal de error
 vbExclamation señal de advertencia
 vbInformation señal de información
Cuadro de Mensaje- MsgBoxStyle
 vbQuestion señal de interrogación
 vbOkOnly botón de aceptar
 vbOkCancel botones aceptar y cancelar
Cuadro de Mensaje- MsgBoxStyle
 vbYesNo botones Sí y No
 vbYesNoCancel botones Sí, No y Cancelar
 vbAbortRetryIgnore botones Anular,
Reintentar y Omitir
Cuadro de Mensaje (MessageBox)
If API < 0 Then
MsgBox(“Valor no permitido”, vbCritical , “ERROR”)
Else
Gec = 141.5 /(API+131.5)
Label2.Text = Math.Round ( Gec, 2)
End If
16
MsgBox(Mensaje, MsgBoxStyle, "TITLE")
Sintaxis
API = val(InputBox (“Introduzca API”, “API”) )
Preguntas, dudas, inquietudes
y/o comentarios?
17

Más contenido relacionado

Último

Las inundaciones diapositivas.pptxLas inundaciones diapositivas.pptx
Las inundaciones diapositivas.pptxLas inundaciones diapositivas.pptxLas inundaciones diapositivas.pptxLas inundaciones diapositivas.pptx
Las inundaciones diapositivas.pptxLas inundaciones diapositivas.pptx
KarlaPaolaJuarezSosa
 
fusarium oxisporum presentación detallada
fusarium oxisporum presentación detalladafusarium oxisporum presentación detallada
fusarium oxisporum presentación detallada
Luisngel65
 
La-fotosintesis-Fase-luminosa-y-oscura.pptx
La-fotosintesis-Fase-luminosa-y-oscura.pptxLa-fotosintesis-Fase-luminosa-y-oscura.pptx
La-fotosintesis-Fase-luminosa-y-oscura.pptx
ratatuielmastui123
 
Biodiversidad, Flora-y-Fauna de Bolivia.pdf
Biodiversidad, Flora-y-Fauna de Bolivia.pdfBiodiversidad, Flora-y-Fauna de Bolivia.pdf
Biodiversidad, Flora-y-Fauna de Bolivia.pdf
reedrichards393
 
Estudio de los microorganismos en ambientes extremos
Estudio de los microorganismos en ambientes extremosEstudio de los microorganismos en ambientes extremos
Estudio de los microorganismos en ambientes extremos
vazquezivanna01
 
El Potencial Transformativo de la Inteligencia Artificial
El Potencial Transformativo de la Inteligencia ArtificialEl Potencial Transformativo de la Inteligencia Artificial
El Potencial Transformativo de la Inteligencia Artificial
SUSMAI
 
CATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDAS
CATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDASCATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDAS
CATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDAS
Group Lliuya
 
GUIA DE PIMCE_0 MODULO DEL CURSO (1).pdf
GUIA DE PIMCE_0  MODULO DEL CURSO (1).pdfGUIA DE PIMCE_0  MODULO DEL CURSO (1).pdf
GUIA DE PIMCE_0 MODULO DEL CURSO (1).pdf
ANELLARA1
 
Vitamina c hecho por Valeria montes xdxd
Vitamina c  hecho por Valeria montes xdxdVitamina c  hecho por Valeria montes xdxd
Vitamina c hecho por Valeria montes xdxd
valeriamontes34
 
Mapa mental de la vigilancia en salud pública
Mapa mental de la vigilancia en salud públicaMapa mental de la vigilancia en salud pública
Mapa mental de la vigilancia en salud pública
ANGELICAISAMARABARRO
 
DEBATE EXPERIMENTACION ANIMAL TEMA POLEMICO
DEBATE EXPERIMENTACION ANIMAL TEMA POLEMICODEBATE EXPERIMENTACION ANIMAL TEMA POLEMICO
DEBATE EXPERIMENTACION ANIMAL TEMA POLEMICO
ANGELJOELSILVAPINZN
 
trabalhodegeografiadaleticia.pdfcomtranferenciaparapptx
trabalhodegeografiadaleticia.pdfcomtranferenciaparapptxtrabalhodegeografiadaleticia.pdfcomtranferenciaparapptx
trabalhodegeografiadaleticia.pdfcomtranferenciaparapptx
Kauanny9
 
Presentación ecotecnología muros verdes .pdf
Presentación ecotecnología muros verdes .pdfPresentación ecotecnología muros verdes .pdf
Presentación ecotecnología muros verdes .pdf
MILAGROSCANDELARIARO
 
ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual
ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrualciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual
ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual
vaquitaubateclase
 
IMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAY
IMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAYIMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAY
IMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAY
yober ccayhuari aguirre
 
que son las sustancias quimicas y como id
que son las sustancias quimicas y como idque son las sustancias quimicas y como id
que son las sustancias quimicas y como id
GonzaloMargaritoNori
 
FISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptx
FISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptxFISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptx
FISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptx
MichaelVlezLpez
 
Principios-Ambientales-en-la-Constitucion-del-Ecuador.pptx
Principios-Ambientales-en-la-Constitucion-del-Ecuador.pptxPrincipios-Ambientales-en-la-Constitucion-del-Ecuador.pptx
Principios-Ambientales-en-la-Constitucion-del-Ecuador.pptx
AliTatty
 
Plantas medicinales - cómo combaten la diabetes.pptx
Plantas medicinales - cómo combaten la diabetes.pptxPlantas medicinales - cómo combaten la diabetes.pptx
Plantas medicinales - cómo combaten la diabetes.pptx
eguiluzlunajoaquin
 
Presentación sobre la cría de pescado pejerrey
Presentación sobre la cría de pescado pejerreyPresentación sobre la cría de pescado pejerrey
Presentación sobre la cría de pescado pejerrey
RodrigoSegura24
 

Último (20)

Las inundaciones diapositivas.pptxLas inundaciones diapositivas.pptx
Las inundaciones diapositivas.pptxLas inundaciones diapositivas.pptxLas inundaciones diapositivas.pptxLas inundaciones diapositivas.pptx
Las inundaciones diapositivas.pptxLas inundaciones diapositivas.pptx
 
fusarium oxisporum presentación detallada
fusarium oxisporum presentación detalladafusarium oxisporum presentación detallada
fusarium oxisporum presentación detallada
 
La-fotosintesis-Fase-luminosa-y-oscura.pptx
La-fotosintesis-Fase-luminosa-y-oscura.pptxLa-fotosintesis-Fase-luminosa-y-oscura.pptx
La-fotosintesis-Fase-luminosa-y-oscura.pptx
 
Biodiversidad, Flora-y-Fauna de Bolivia.pdf
Biodiversidad, Flora-y-Fauna de Bolivia.pdfBiodiversidad, Flora-y-Fauna de Bolivia.pdf
Biodiversidad, Flora-y-Fauna de Bolivia.pdf
 
Estudio de los microorganismos en ambientes extremos
Estudio de los microorganismos en ambientes extremosEstudio de los microorganismos en ambientes extremos
Estudio de los microorganismos en ambientes extremos
 
El Potencial Transformativo de la Inteligencia Artificial
El Potencial Transformativo de la Inteligencia ArtificialEl Potencial Transformativo de la Inteligencia Artificial
El Potencial Transformativo de la Inteligencia Artificial
 
CATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDAS
CATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDASCATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDAS
CATALOGO DE AGROKLINGE NUEVO 2024 INSECTICIDAS
 
GUIA DE PIMCE_0 MODULO DEL CURSO (1).pdf
GUIA DE PIMCE_0  MODULO DEL CURSO (1).pdfGUIA DE PIMCE_0  MODULO DEL CURSO (1).pdf
GUIA DE PIMCE_0 MODULO DEL CURSO (1).pdf
 
Vitamina c hecho por Valeria montes xdxd
Vitamina c  hecho por Valeria montes xdxdVitamina c  hecho por Valeria montes xdxd
Vitamina c hecho por Valeria montes xdxd
 
Mapa mental de la vigilancia en salud pública
Mapa mental de la vigilancia en salud públicaMapa mental de la vigilancia en salud pública
Mapa mental de la vigilancia en salud pública
 
DEBATE EXPERIMENTACION ANIMAL TEMA POLEMICO
DEBATE EXPERIMENTACION ANIMAL TEMA POLEMICODEBATE EXPERIMENTACION ANIMAL TEMA POLEMICO
DEBATE EXPERIMENTACION ANIMAL TEMA POLEMICO
 
trabalhodegeografiadaleticia.pdfcomtranferenciaparapptx
trabalhodegeografiadaleticia.pdfcomtranferenciaparapptxtrabalhodegeografiadaleticia.pdfcomtranferenciaparapptx
trabalhodegeografiadaleticia.pdfcomtranferenciaparapptx
 
Presentación ecotecnología muros verdes .pdf
Presentación ecotecnología muros verdes .pdfPresentación ecotecnología muros verdes .pdf
Presentación ecotecnología muros verdes .pdf
 
ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual
ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrualciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual
ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual ciclo menstrual
 
IMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAY
IMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAYIMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAY
IMPRESION TRIPTICO DE RESIDUOS SOLIDOS EN ABANCAY
 
que son las sustancias quimicas y como id
que son las sustancias quimicas y como idque son las sustancias quimicas y como id
que son las sustancias quimicas y como id
 
FISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptx
FISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptxFISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptx
FISIOLOGIA DIGESTIVA AVESTRUZ-CONEJO-BUFALO DIAPOSITIVAS.pptx
 
Principios-Ambientales-en-la-Constitucion-del-Ecuador.pptx
Principios-Ambientales-en-la-Constitucion-del-Ecuador.pptxPrincipios-Ambientales-en-la-Constitucion-del-Ecuador.pptx
Principios-Ambientales-en-la-Constitucion-del-Ecuador.pptx
 
Plantas medicinales - cómo combaten la diabetes.pptx
Plantas medicinales - cómo combaten la diabetes.pptxPlantas medicinales - cómo combaten la diabetes.pptx
Plantas medicinales - cómo combaten la diabetes.pptx
 
Presentación sobre la cría de pescado pejerrey
Presentación sobre la cría de pescado pejerreyPresentación sobre la cría de pescado pejerrey
Presentación sobre la cría de pescado pejerrey
 

Destacado

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 

Destacado (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

2.12.-Tema2_CuadrosDialogo.pdf

  • 1. Programación Aplicada PET 211 MSc. Luz Diana Torrez C. Santa Cruz -Bolivia
  • 4. Cuadro de Dialogo (InputBox) 4 • Un cuadro de entrada o cuadro de Dialogo (InputBox) es un cuadro de diálogo predeterminado • El InputBox se usa para una sola entrada • Utilizar cuadros de texto (TextBox) para varias entradas
  • 5. Cuadro de Dialogo (InputBox) Sintaxis InputBox (prompt, title) • Prompt: El mensaje o AVISO que aparece en el interior del cuadro de diálogo • Title: El título del texto aparece en la barra de título del cuadro de diálogo. • Los paréntesis son necesarios!!! 5 InputBox (prompt, title)
  • 6. Cuadro de Dialogo (InputBox) Sintaxis InputBox (prompt, title) • API = val(InputBox (“Introduzca API”, “API”) ) Usando la Variable API • Gec = 141.5 /(API+131.5) • Label2.Text = Math.Round ( Gec, 2) 6 InputBox (prompt, title) Función: • Val() • Math.Round()
  • 7. Cuadro de Dialogo (InputBox) • Ejemplo : Asignando a una variable el valor de texto ingresado usando un InputBox ( cuadro de entrada) 7 StrVariable1 = InputBox (mensaje, titulo)
  • 8. Cuadro de Dialogo (InputBox) • Ejemplo2: Asignando a una variable el valor numérico ingresado usando un InputBox SingVariable2 = Val (InputBox("mensaje", "titulo")) • El contenido de un cuadro del InputBox se debe convertir en un número antes de asignarse a una variable numérica • Val () convierte la cadena de entrada en un número. 8
  • 10. Cuadro de Mensaje (MessageBox) 10 • Utilice los cuadros de mensaje para llamar la atención del usuario • Genera un mensaje de salida • Un cuadro de mensaje también es un cuadro de diálogo predeterminado
  • 11. Cuadro de Mensaje (MessageBox) • Mensaje: Texto a exhibir en el cuadro de mensaje • MsgBoxStyle: Estilo de exhibición del MessageBox es opcional, puede dejarse vacío (,,) • Title: El título del texto aparece en el Cuadro de Mensaje . Es opcional!! 11 MsgBox(Mensaje, MsgBoxStyle, "TITLE") Sintaxis
  • 12. Cuadro de Mensaje- MsgBoxStyle  vbCritical señal de error  vbExclamation señal de advertencia  vbInformation señal de información  vbQuestion señal de interrogación  vbOkOnly botón de aceptar  vbOkCancel botones aceptar y cancelar  vbYesNo botones Sí y No  vbYesNoCancel botones Sí, No y Cancelar  vbAbortRetryIgnore botones Anular, Reintentar y Omitir
  • 13. Cuadro de Mensaje- MsgBoxStyle  vbCritical señal de error  vbExclamation señal de advertencia  vbInformation señal de información
  • 14. Cuadro de Mensaje- MsgBoxStyle  vbQuestion señal de interrogación  vbOkOnly botón de aceptar  vbOkCancel botones aceptar y cancelar
  • 15. Cuadro de Mensaje- MsgBoxStyle  vbYesNo botones Sí y No  vbYesNoCancel botones Sí, No y Cancelar  vbAbortRetryIgnore botones Anular, Reintentar y Omitir
  • 16. Cuadro de Mensaje (MessageBox) If API < 0 Then MsgBox(“Valor no permitido”, vbCritical , “ERROR”) Else Gec = 141.5 /(API+131.5) Label2.Text = Math.Round ( Gec, 2) End If 16 MsgBox(Mensaje, MsgBoxStyle, "TITLE") Sintaxis API = val(InputBox (“Introduzca API”, “API”) )