<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6437005568345850366</id><updated>2024-09-01T14:50:16.254-07:00</updated><category term="Programas Basicos"/><category term="Funciones"/><category term="Algoritmo"/><category term="Arrays"/><category term="Recursos"/><category term="VB.NET"/><title type='text'>Dynamic Dot Net</title><subtitle type='html'>mucha practica... poco bla, bla, bla</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-5754975701711430115</id><published>2017-05-23T09:11:00.001-07:00</published><updated>2017-05-23T09:11:54.625-07:00</updated><title type='text'>The Internet of Things</title><content type='html'>&lt;h2 style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;times new roman&amp;quot; , serif;&quot;&gt;The Internet of Things&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKU5zaHUxLZ7RkwnXQ41pPkOtrkmPB_VcChO20CoSRayyrses0HvRpoIH6p7MBYj7dB9LwB0xMPd2Wdb4umyd-tFGoUhfu2VLDfimxWLdhI0izkshdHEjT4gdsOUi70XfbPeXZjxenoBTp/s1600/20170520_131519.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKU5zaHUxLZ7RkwnXQ41pPkOtrkmPB_VcChO20CoSRayyrses0HvRpoIH6p7MBYj7dB9LwB0xMPd2Wdb4umyd-tFGoUhfu2VLDfimxWLdhI0izkshdHEjT4gdsOUi70XfbPeXZjxenoBTp/s320/20170520_131519.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: #222222; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px; width: 100%px; word-wrap: break-word;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class=&quot;m_-6951398812041516067res-font16&quot; style=&quot;font-family: arial, sans-serif; font-size: 18px; line-height: 22px; margin: 0px;&quot;&gt;&lt;a data-saferedirecturl=&quot;https://www.google.com/url?hl=en&amp;amp;q=https://www.linkedin.com/comm/groups/2367818/2367818-6270646259590189058?midToken%3DAQGuUrRMj-YmFg%26trk%3Deml-b2_anet_digest_of_digests-hero-11-discussion%257Esubject%26trkEmail%3Deml-b2_anet_digest_of_digests-hero-11-discussion%257Esubject-null-meu45%257Ej307i41h%257Es1-null-communities%257Egroup%257Ediscussion%26lipi%3Durn%253Ali%253Apage%253Aemail_b2_anet_digest_of_digests%253BcBQG6K7MTLGCXiRQUeXI4A%253D%253D&amp;amp;source=gmail&amp;amp;ust=1495640864702000&amp;amp;usg=AFQjCNH6u4uiqZMie6hqQl1nHmtVFy6XVg&quot; dir=&quot;ltr&quot; href=&quot;https://www.linkedin.com/comm/groups/2367818/2367818-6270646259590189058?midToken=AQGuUrRMj-YmFg&amp;amp;trk=eml-b2_anet_digest_of_digests-hero-11-discussion%7Esubject&amp;amp;trkEmail=eml-b2_anet_digest_of_digests-hero-11-discussion%7Esubject-null-meu45%7Ej307i41h%7Es1-null-communities%7Egroup%7Ediscussion&amp;amp;lipi=urn%3Ali%3Apage%3Aemail_b2_anet_digest_of_digests%3BcBQG6K7MTLGCXiRQUeXI4A%3D%3D&quot; style=&quot;color: #2d8cd7; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;Comprueba si tienes cerrados estos puertos en tu router para evitar WannaCry desde Internet&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin: 0px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;m_-6951398812041516067email-spacer&quot; style=&quot;width: 1px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-size: 10px; height: 10px; line-height: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;color: #aaaaaa; font-family: arial, sans-serif; margin: 0px;&quot;&gt;Por Mauricio Anguiano&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin: 0px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;m_-6951398812041516067email-spacer&quot; style=&quot;width: 1px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;margin: 0px;&quot;&gt;&lt;div style=&quot;font-size: 10px; height: 10px; line-height: 10px;&quot;&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin: 0px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Helvetica, Arial, sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin: 0px;&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Helvetica, Arial, sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;color: #333333; font-size: 12px; line-height: 18px;&quot;&gt;&lt;td style=&quot;font-family: arial, sans-serif; margin: 0px;&quot;&gt;El ransomware WannaCry ha tenido un impacto sin precedentes en los equipos de todo el mundo. En un primer momento se comentó que empezó a propagarse...&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/5754975701711430115/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2017/05/the-internet-of-things-comprueba-si.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/5754975701711430115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/5754975701711430115'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2017/05/the-internet-of-things-comprueba-si.html' title='The Internet of Things'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKU5zaHUxLZ7RkwnXQ41pPkOtrkmPB_VcChO20CoSRayyrses0HvRpoIH6p7MBYj7dB9LwB0xMPd2Wdb4umyd-tFGoUhfu2VLDfimxWLdhI0izkshdHEjT4gdsOUi70XfbPeXZjxenoBTp/s72-c/20170520_131519.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-1104536244769188337</id><published>2012-01-24T12:31:00.000-08:00</published><updated>2012-01-24T12:33:48.795-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Funciones"/><title type='text'>Sub procedimientos en VB.NET</title><content type='html'>&lt;span style=&quot;color: #444444;&quot;&gt;VB.NET tiene un dispositivo llamado &lt;b&gt;Sub procedures&lt;/b&gt; (Sub procedimientos) los cuales son usados para romper un problemas en problemas mas pequenos para ser resolvidos uno a la vez. Los Sub procedures tambien eliminan el codigo repetitivo y se pueden reusar en otros programas.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;Los Sub procedures son parte de un programa y son escritos como parte separada del programa, tambien tiene su propio nombre, la sintaxis para un Sub procedures se escribe asi:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sub &lt;/span&gt;&lt;b&gt;NombreProcedimiento()&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&amp;nbsp; &amp;nbsp;declaraciones()&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;En el siguiente ejemplo de un programa que suma 2 numeros vea como la informacion que se necesita para poder sumar los numeros esta en el &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private Sub&lt;/span&gt;&lt;span style=&quot;color: #444444;&quot;&gt; que se crea automaticamente cuando se da doble click en el boton. Tambien vea como la parte que calcula la suma esta en un &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;span style=&quot;color: #444444;&quot;&gt; procedimiento aparte. (Sub sumarNumeros() ).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Codigo:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Public&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Form1&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; Button1_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnCalcularSuma.Click&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; box1 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt; = &lt;span style=&quot;color: blue;&quot;&gt;CInt&lt;/span&gt;(txtNum1.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; box2 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt; = &lt;span style=&quot;color: blue;&quot;&gt;CInt&lt;/span&gt;(txtNum2.Text)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sumarNumeros(box1, box2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; sumarNumeros(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; num1 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; num2 &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;txtResultado.Text = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;La suma es: &quot;&lt;/span&gt; &amp;amp; num1 + num2&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Programa:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-JenKhnspf24/Tx8T69DmqCI/AAAAAAAAARY/U1XFwL6ns-k/s1600/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-JenKhnspf24/Tx8T69DmqCI/AAAAAAAAARY/U1XFwL6ns-k/s1600/Capture.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Como esto es solo un sencillo programa de suma no es necesario crear un Sub proceso. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;El proposito es que vea como funcionan los Sub procesos o Sub programas.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/1104536244769188337/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/sub-procedimientos-en-vbnet.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/1104536244769188337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/1104536244769188337'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/sub-procedimientos-en-vbnet.html' title='Sub procedimientos en VB.NET'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-JenKhnspf24/Tx8T69DmqCI/AAAAAAAAARY/U1XFwL6ns-k/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-7620196428933803623</id><published>2012-01-22T17:24:00.000-08:00</published><updated>2012-01-22T17:24:38.244-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Recursos"/><title type='text'>Inscribete en Microsoft Virtual Academy</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-JN-FB_AbEo4/Txy1teXjUeI/AAAAAAAAARQ/bO5cWGrBf7U/s1600/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;http://3.bp.blogspot.com/-JN-FB_AbEo4/Txy1teXjUeI/AAAAAAAAARQ/bO5cWGrBf7U/s400/Capture.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Si todavía no te has registrado en el &lt;b&gt;Microsoft Virtual Academy &lt;/b&gt;te recomiendo que lo hagas. MVA es un centro virtual de aprendizaje gratuito de Microsoft basado en la nube y que por ende se concentra en las tecnologías de la nube de Microsoft.&lt;br /&gt;
&lt;br /&gt;
En el MVA podrás tener acceso a una gran variedad de cursos y carreras de capitación y convertirte en uno de los expertos en la comunidad IT Pro en tecnologías Microsoft a nivel mundial.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;El MVA es como estar en una universidad virtual, usted selecciona el curso que le interese, estudia el material y tomas los examen. A medida que vayas estudiando los temas del curso seleccionado y completando los examen acumularas puntos que te llevaran progresivamente a diferentes niveles, comenzando con el nivel de Bronce, seguido por &lt;b&gt;Silver&lt;/b&gt;, &lt;b&gt;Gold&lt;/b&gt; y el máximo galardón, &lt;b&gt;Platinum.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
En el Top&lt;b&gt; de Estudiantes&lt;/b&gt; puedes ver cuales son los primeros 10 en tu país así como a nivel mundial.</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/7620196428933803623/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/inscribete-en-microsoft-virtual-academy.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/7620196428933803623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/7620196428933803623'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/inscribete-en-microsoft-virtual-academy.html' title='Inscribete en Microsoft Virtual Academy'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-JN-FB_AbEo4/Txy1teXjUeI/AAAAAAAAARQ/bO5cWGrBf7U/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-7280410686533103052</id><published>2012-01-21T09:23:00.000-08:00</published><updated>2012-01-21T09:47:27.273-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Arrays"/><category scheme="http://www.blogger.com/atom/ns#" term="Programas Basicos"/><title type='text'>Creando y Accesando Arrays en VB.NET</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Una simple &lt;/span&gt;&lt;b style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;variable&lt;/b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt; es un nombre lógico donde el programa puede asignar o almacenar un solo valor.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Una &lt;b&gt;variable de Array&lt;/b&gt; es una colección de variables del mismo tipo donde el programa&amp;nbsp; asigna eficientemente a una lista de valores.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;A si se declara un Array en VB.NET:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-size: 12pt; line-height: 115%;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;color: #1f497d; font-size: 12pt; line-height: 115%;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;nombreArray(n)&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;As&amp;nbsp; tipoVariable&lt;/span&gt;&lt;span style=&quot;color: #548dd4;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;nombreArray()&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt; = cualquier nombre lógico &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;n&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt; = límite superior del Array, (ej.: 5, 10, 20,…)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Ahora vamos hacer un sencillo programa para ver el funcionamiento de los Arrays en VB.NET, donde usted introduce un número del 1 al 5 y el programa le dice el nombre del cantante al que pertenece la posición:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;b&gt;Receta:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;2 etiquetas&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;2 caja de texto (&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 18px;&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 18px;&quot;&gt;xtNumero,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 16px; line-height: 18px;&quot;&gt;txtCantante&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 16px; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;1 botón. (btnMostrarCantante)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;Código 1:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Public&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Form1&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;  &lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; Button1_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnMostrarCantante.Click&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; text-align: left;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&#39;Declaracion del Array nombreCantante(5)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;Dim&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; nombreCantante(5) &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&#39;Declaracion de la variable n para poder acceder al Array&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;Dim&lt;/span&gt; n &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;&#39;Asigna los nombres de los cantantes a la lista del Array&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;nombreCantante(1) = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Shakira&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;nombreCantante(2) = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Ricky Martin&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;nombreCantante(3) = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Enrique Iglesias&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;nombreCantante(4) = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Wisin &amp;amp; Yandel&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;nombreCantante(5) = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Ricardo Arjona&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&#39;n = al numero que se introdusca en el textBox&lt;/span&gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;n = &lt;span style=&quot;color: blue;&quot;&gt;CInt&lt;/span&gt;(txtNumero.Text)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;&#39;Este If es para prevenir que el usuario entre un numero mayor que 5&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; n &amp;gt; 5 &lt;span style=&quot;color: blue;&quot;&gt;Then&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;MsgBox(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Por favor solo entre un numero del 1 al 5.&quot;&lt;/span&gt;, , &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Error, numero mayor que 5&quot;&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;txtCantante.Text = nombreCantante(n)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 12pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; End&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;End&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-o3az40y3A7s/Txrwt7JIroI/AAAAAAAAARA/x3Vasad7cyA/s1600/Capture.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-o3az40y3A7s/Txrwt7JIroI/AAAAAAAAARA/x3Vasad7cyA/s1600/Capture.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #548dd4; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #548dd4; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #548dd4; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #548dd4; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #548dd4; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: #548dd4; font-family: Calibri, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 17px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 115%;&quot;&gt;Si el usuario entra un número mayor que 5 &amp;nbsp;le sale un mensaje de error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;Otra manera más eficiente en que se puede hacer este programa y con menos líneas de código es de la siguiente forma:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Código 2:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;line-height: 18px; text-align: -webkit-auto;&quot;&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;b style=&quot;line-height: 18px; text-align: -webkit-auto;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Public&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Form1&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; nombreCantante() &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt; = {&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Shakira&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Ricky Martin&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Enrique Iglesias&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Wisin &amp;amp; Yandel&quot;&lt;/span&gt;, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Ricardo Arjona&quot;&lt;/span&gt;}&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Private&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; btnMostrarCantante_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.Object, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.EventArgs) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnMostrarCantante.Click&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; n &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;n = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;CInt&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(txtNumero.Text)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt; n &amp;gt; 5 &lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;MsgBox(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Por favor solo entre un numero del 1 al 5.&quot;&lt;/span&gt;, , &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Error, numero mayor que 5&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Else&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;txtCantante.Text = nombreCantante(n)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp; End&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;End Class&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Nota:&lt;/span&gt;&lt;/b&gt; En este codigo el Array &lt;b&gt;nombreCantante()&lt;/b&gt; es declarado antes del &lt;span style=&quot;color: blue;&quot;&gt;Private Sub&lt;/span&gt; &lt;b&gt;btnMostrarCantante_Click()…&lt;/b&gt; esto se llama declarar en el &lt;b&gt;&lt;i&gt;class-level&lt;/i&gt;&lt;/b&gt;(a nivel de la clase) y permite que los valores del Array se carguen junto con la clase.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;Y note que los valores del Array son inicializados al momento de declarar el Array, y no hubo que especificar el &lt;b&gt;limite superior&lt;/b&gt; del Array ya que al inicializar los 5 nombres de los cantantes en el Array el Array sabe que tiene que guardar espacio en memoria para 5 valores.&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;;&quot;&gt;De esta manera obtendra el mismo resultado con menos lineas de codigo.&lt;/span&gt;&lt;b&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;Las 2 maneras de hacerlo son igualmente fáciles, use el que más le convenga, aunque en el segundo código es más rápido crear Arrays en VB.NET.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/7280410686533103052/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/creando-y-accesando-arrays-en-vbnet.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/7280410686533103052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/7280410686533103052'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/creando-y-accesando-arrays-en-vbnet.html' title='Creando y Accesando Arrays en VB.NET'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-o3az40y3A7s/Txrwt7JIroI/AAAAAAAAARA/x3Vasad7cyA/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-4837106424315835517</id><published>2012-01-17T17:03:00.000-08:00</published><updated>2012-01-17T17:03:55.512-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programas Basicos"/><title type='text'>Programa para calacular cantidad de calorias y libras perdidas</title><content type='html'>El numero de calorias quemadas o perdidas por una persona que corre bicicleta es de 200 calorias por hora y de correr o trotar es de 475 calorias por hora y de nadar es de 275 calorias por hora.&lt;br /&gt;
&lt;br /&gt;
El siguiente programa le permite al usuario entrar el numero de horas gastadas en cada actividad fisica y calcular el total de calorias y de libras que perdio en las actividades.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3500 calorias = 1 libra&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ingredientes:&lt;/b&gt;&lt;br /&gt;
5 labels&lt;br /&gt;
5 text box&lt;br /&gt;
1 boton&lt;br /&gt;
&lt;br /&gt;
Codigo:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: Consolas;&quot;&gt;Public&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: Consolas;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Form1&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;
btnSumar_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt;
btnCalcular.Click&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt; mso-ansi-language: EN-US; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt; caloriasBici, caloriasCorrer, caloriasNadar,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; totalCalorias, totalLibras &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Double&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; caloriasBici = 200 * &lt;span style=&quot;color: blue;&quot;&gt;CDbl&lt;/span&gt;(txtbicicleta.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; caloriasCorrer = 475 * &lt;span style=&quot;color: blue;&quot;&gt;CDbl&lt;/span&gt;(txtCorriendo.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; caloriasNadar = 275 * &lt;span style=&quot;color: blue;&quot;&gt;CDbl&lt;/span&gt;(txtNadando.Text)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; totalCalorias = caloriasBici +
caloriasCorrer + caloriasNadar&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtTotalCalorias.Text = &lt;span style=&quot;color: blue;&quot;&gt;CStr&lt;/span&gt;(totalCalorias) &amp;amp; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;
calorias fueron quemadas.&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; totalLibras = totalCalorias / 3500&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtTotalLibras.Text = &lt;span style=&quot;color: blue;&quot;&gt;CStr&lt;/span&gt;(totalLibras)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;Programa:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-ok1xxuf722M/TxYYvs1uc_I/AAAAAAAAAQ4/2sPgMZ0X47s/s1600/Capture1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-ok1xxuf722M/TxYYvs1uc_I/AAAAAAAAAQ4/2sPgMZ0X47s/s1600/Capture1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/4837106424315835517/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/programa-para-calacular-cantidad-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/4837106424315835517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/4837106424315835517'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/programa-para-calacular-cantidad-de.html' title='Programa para calacular cantidad de calorias y libras perdidas'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-ok1xxuf722M/TxYYvs1uc_I/AAAAAAAAAQ4/2sPgMZ0X47s/s72-c/Capture1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-4729603683544980691</id><published>2012-01-17T08:53:00.000-08:00</published><updated>2012-01-17T17:04:33.636-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Funciones"/><category scheme="http://www.blogger.com/atom/ns#" term="Programas Basicos"/><title type='text'>Analizando un nombre con las funciones IndexOf y Substring</title><content type='html'>La función o método &lt;b&gt;IndexOf( )&lt;/b&gt; busca la primera ocurrencia de un string en otro string y devuelve la posicion en la cual el string fue encontrado.&lt;br /&gt;
&lt;br /&gt;
La funcion &lt;b&gt;Substring( ) &lt;/b&gt;devuelve una secuencia de caracteres consecutivos de un string.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Veamos un ejemplo:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ingredientes:&lt;/b&gt;&lt;br /&gt;
1 label&lt;br /&gt;
1 cajas de texto&lt;br /&gt;
1 listBox&lt;br /&gt;
1 boton&lt;br /&gt;
&lt;br /&gt;
En este ejemplo el programa determinaa el nombre de una persona y cuenta las cantidad de letras del apellido.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Codigo:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Public&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Form1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; btnSumar_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnAnalizar.Click&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Dim&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; nombreCompleto, nombre, apellido &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; n &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nombreCompleto = txtNombre.Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n = nombreCompleto.IndexOf(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot; &quot;&lt;/span&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nombre = nombreCompleto.Substring(0, n)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apellido = nombreCompleto.Substring(n + 1)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;With&lt;/span&gt; lstResultado.Items&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Clear()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Nombre: &quot;&lt;/span&gt; &amp;amp; nombre)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Su apellido tiene &quot;&lt;/span&gt; &amp;amp; apellido.Length &amp;amp; &lt;span style=&quot;color: #a31515;&quot;&gt;&quot; letras.&quot;&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;End&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;With&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;End&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Programa:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-XwYwVlnhxTg/TxWmZcaP7JI/AAAAAAAAAQw/GX9HE03icO4/s1600/Capture1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-XwYwVlnhxTg/TxWmZcaP7JI/AAAAAAAAAQw/GX9HE03icO4/s1600/Capture1.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/4729603683544980691/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/analizando-un-nombre-con-las-funciones.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/4729603683544980691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/4729603683544980691'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/analizando-un-nombre-con-las-funciones.html' title='Analizando un nombre con las funciones IndexOf y Substring'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-XwYwVlnhxTg/TxWmZcaP7JI/AAAAAAAAAQw/GX9HE03icO4/s72-c/Capture1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-7652863014232308031</id><published>2012-01-16T12:59:00.000-08:00</published><updated>2012-01-17T17:07:53.346-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programas Basicos"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><title type='text'>Sencillo Programa de suma en VB.NET</title><content type='html'>&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Ingredientes:&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;3 labels&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;3 cajas de text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;1 botón.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;En nuestro caso, a las cajas de texto le dimos el nombre de&lt;b&gt; txtNum1&lt;/b&gt;,&lt;b&gt; txtNum2&lt;/b&gt; y &lt;b&gt;txtSuma&lt;/b&gt; y al botón &lt;b&gt;btnSumar&lt;/b&gt;.&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Delaramos una variable llamada&lt;b&gt; suma&lt;/b&gt; de tipo de &lt;span style=&quot;color: blue;&quot;&gt;Double&lt;/span&gt; la cual almacena la suma de los 2 textBox y luego la caja &lt;b&gt;txtSuma&lt;/b&gt; almacena y muestra el resultado.&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;b&gt;Codigo fuente:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Public&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Form1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; btnSumar_Click(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;Object&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; System.&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt; btnSumar.Click&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; suma &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Double&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suma = &lt;span style=&quot;color: blue;&quot;&gt;CDbl&lt;/span&gt;(txtNum1.Text) + &lt;span style=&quot;color: blue;&quot;&gt;CDbl&lt;/span&gt;(txtNum2.Text)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtSuma.Text = &lt;span style=&quot;color: blue;&quot;&gt;CStr&lt;/span&gt;(suma)&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;b&gt;Programa:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-3PTntaLbzVg/TxSOWFDszaI/AAAAAAAAAP0/2ddT_lLQJw8/s1600/Capture2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-3PTntaLbzVg/TxSOWFDszaI/AAAAAAAAAP0/2ddT_lLQJw8/s1600/Capture2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Note que&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;txtNum1.Text&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;y&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;txtNum2.Text&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;están dentro de la función&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;CDbl&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;esta funcion permite que las cajas de texto acepten números, ya que por defecto (by default) las cajas de texto solo aceptan texto, por lo tanto hay que decirle al programa que lo se va entrar en la caja de texto son números y no texto.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;CDbl&amp;nbsp;&lt;/span&gt;= Convert to doublé (permite que las cajas de texto acepten numeros de tipo int y double)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Por otro lado note que la variable&amp;nbsp;&lt;b&gt;suma&lt;/b&gt;&amp;nbsp;esta dentro de la función&amp;nbsp;CStr. Como la salida por la caja de texto&amp;nbsp;&lt;b&gt;txtSuma.Text&lt;/b&gt;&amp;nbsp;dentra como salida un numero hay que decirle al programa que convierta ese numero en un string.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;CStr&lt;/span&gt;&amp;nbsp;= Convert to String (permite que las cajas de texto acepten como salida numeros)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-RdZNoeHC4Jk/TxSOS5hjg_I/AAAAAAAAAPs/lxfDKPhPGBo/s1600/Capture1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-RdZNoeHC4Jk/TxSOS5hjg_I/AAAAAAAAAPs/lxfDKPhPGBo/s1600/Capture1.JPG&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Si no hace estas conversiones con estas funciones el programa no podrá hacer la suma, solo mostrara como salida lo que se entre en las cajas de texto. Haga la prueba usted mismo, elimine las funciones CDbl y CStr y vera.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/7652863014232308031/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/para-este-programa-necesitara-3-labels.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/7652863014232308031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/7652863014232308031'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/para-este-programa-necesitara-3-labels.html' title='Sencillo Programa de suma en VB.NET'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-3PTntaLbzVg/TxSOWFDszaI/AAAAAAAAAP0/2ddT_lLQJw8/s72-c/Capture2.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6437005568345850366.post-2873213395091164988</id><published>2012-01-15T20:52:00.000-08:00</published><updated>2012-01-16T11:59:14.723-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Algoritmo"/><title type='text'>Planeando un programa paso-a-paso</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: solid #4F81BD 1.0pt; border: none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoTitle&quot; style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://ihumanable.com/blog/wp-content/uploads/2010/02/baby-up-steps.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://ihumanable.com/blog/wp-content/uploads/2010/02/baby-up-steps.jpg&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Crear un plan para su programa es lo primero que debes hacer antes ponerte a escribir código. Un plan &amp;nbsp; &amp;nbsp; &amp;nbsp; reduce enormemente el número de errores que podrías tener al momento de diseñar, programar y probar el programa. Te imaginas a un ingeniero creando un edificio sin un plan detallado del mismo? Creo que no, sería un desastre.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Muchos programadores en sus comienzos, escriben código o programas sin primero crear un buen plan.&amp;nbsp; Además pasarías menos tiempo trabajando en el programa si cuidadosamente creas un plan &lt;b&gt;paso-a-paso&lt;/b&gt; (algoritmo) y pruebas dicho plan antes de escribir el programa.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Planear un programa usando una secuencia de pasos se conoce en ingles como &lt;b&gt;program development cycle&lt;/b&gt; o &lt;b&gt;ciclo de desarrollo de programas&lt;/b&gt; y es el método que utilizan muchos programadores.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Ahora para usar tu tiempo eficientemente y diseñar programas “libres de errores” y que tu programa tenga la salida (output) que esperas, sigue los siguientes pasos:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;1.&lt;/b&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Analiza y define el problema: &lt;/b&gt;Tienes que estar seguro y entender que es lo que va hacer el programa y que salida va a tener&amp;nbsp; (el resultado final). También tienes que tener una idea clara sobre que data se le va a dar o a entrar al programa (input) y la relación que esta tendrá entre la data entrada y la data de salida (output) que se espera del programa.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;2.&lt;/b&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Planea la solución al problema:&lt;/b&gt; Encuentra una secuencia lógica de pasos precisos o algoritmo para resolver el problema. Debes de incluir en el algoritmo todos los detalles posibles, incluyendo los pasos obvios.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Ejemplo: Algoritmo para calcular el promedio de 3 notas obtenidas de un estudiante:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Entrar primera nota.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Entrar segunda nota.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;3.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Entrar tercera nota.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;4.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Suma las notas.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;5.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Divide el total de notas entre el número de notas entradas.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;6.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Resultado final.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 150%; margin-left: 54.0pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18.0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Probando el algoritmo:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto; mso-list: l2 level1 lfo3; text-indent: -18.0pt;&quot;&gt;1.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Entrar primera nota; Nota 1= 90 (input)&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto; mso-list: l2 level1 lfo3; text-indent: -18.0pt;&quot;&gt;2.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Entrar segunda nota; Nota2 = 85 (input)&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto; mso-list: l2 level1 lfo3; text-indent: -18.0pt;&quot;&gt;3.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Entrar tercera nota; Nota3 = 75 (input)&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto; mso-list: l2 level1 lfo3; text-indent: -18.0pt;&quot;&gt;4.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Suma las notas; Total = 250 (processing)&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto; mso-list: l2 level1 lfo3; text-indent: -18.0pt;&quot;&gt;5.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Divide&amp;nbsp; total de notas entre el numero de notas entradas; 250/3&amp;nbsp; = 83.33 (processing)&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto; mso-list: l2 level1 lfo3; text-indent: -18.0pt;&quot;&gt;6.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Promedio = 83.33 (output)&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 2.0cm; mso-add-space: auto;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;3.&lt;/b&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Selecciona la interface:&lt;/b&gt; Una vez diseñado y probado tu algoritmo, es el momento de seleccionar los objetos (label, text boxes, buttons, menu, etc.) que le permitirán al usuario&amp;nbsp; controlar e interactuar con el programa.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Código: &lt;/b&gt;Convierte el algoritmo en lenguaje de programación. En este paso el programa es escrito en VB.NET o en el lenguaje de su elección.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 150%; mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 5.&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;b&gt;Testing and debug: &lt;/b&gt;Testing&lt;b&gt; &lt;/b&gt;se refiere a encontrar errores en el programa y debug se refiere a corregir los errores encontrados. Los errores en los programas se conocen como &lt;b&gt;bug&lt;/b&gt;. &lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 150%; mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;b&gt;VB.NET &lt;/b&gt;detecta errores de programación cuando el programa se ejecuta; sin embargo muchos errores suceden por flujos en algoritmo diseñado, incorrecto uso de las reglas del lenguaje o por errores de escritura. Y estos errores no son detectados por VB.NET solo usted los puede detectar y corregir verificando cuidadosamente su código y/o algoritmo. Por ejemplo; Si en una sección del programa el programa tenía que multiplicar en vez de dividir, ese es un error que solo puede ser detectado por usted y no por VB.NET.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 150%;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 150%; mso-list: l1 level1 lfo1; text-indent: -18.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; 6.&lt;/b&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;Documente su programa:&lt;/b&gt; El propósito de la documentación es que le permita a otra persona o programador entender el programa. Puede incluir en la documentación una descripción detallada de lo que el programa hace, como usar el programa, que tipo de información se espera que se introduzca en el programa, el propósito del programa, fecha de creación, autor, etc. Si se trata de un programa comercial sería bueno incluir un manual de instrucciones así como ayuda o soporte en línea.&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dynamicdotnet.blogspot.com/feeds/2873213395091164988/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/planeando-un-programa-paso-paso.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/2873213395091164988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6437005568345850366/posts/default/2873213395091164988'/><link rel='alternate' type='text/html' href='http://dynamicdotnet.blogspot.com/2012/01/planeando-un-programa-paso-paso.html' title='Planeando un programa paso-a-paso'/><author><name>William Rivera</name><uri>http://www.blogger.com/profile/07534728749503675945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/-yckKqRomqMI/TxWHbIrnz-I/AAAAAAAAAQA/sVGQ4-eJN8g/s220/368987_1022958316_1123933470_n%2B%25281%2529.jpg'/></author><thr:total>0</thr:total></entry></feed>