<?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-7802142352168198317</id><updated>2024-09-01T00:59:55.259-05:00</updated><category term="SQL Server"/><category term="Tutorial PFC"/><category term="DataWindow"/><category term="Métodos DataWindow"/><category term="PowerBuilder"/><category term="API Windows"/><category term="Codigo Fuente"/><category term="Conexión"/><category term="Consulta remota"/><category term="Contraseña"/><category term="Cuadro dialogo"/><category term="DataStore"/><category term="DataWindowChild"/><category term="Encriptar Texto"/><category term="Estructura"/><category term="Filtros DataWindow"/><category term="Funciones SQL Server"/><category term="Instrucciones DBCC"/><category term="MySQL"/><category term="Objeto parametro"/><category term="PFC"/><category term="Servidor Vinculado"/><category term="Tipo de dato"/><category term="Validación DataWindow"/><title type='text'>PowerBuilder un dia a la vez</title><subtitle type='html'>Blog orientado al uso de la herramienta PowerBuilder con Interacción con las diversas Base de Datos, SQL Server, Mysql, Oracle, etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-6453448436541935015</id><published>2013-07-19T11:02:00.002-05:00</published><updated>2013-07-19T11:31:43.304-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Consulta remota"/><category scheme="http://www.blogger.com/atom/ns#" term="Servidor Vinculado"/><title type='text'>Ejecutar Consulta desde Servidor Vinculado</title><content type='html'>&lt;br /&gt;
Registramos el servidor vinculado:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&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: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;EXECUTE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;sp_addlinkedserver&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp; &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;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;@server&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;MISERVER&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;--
Servidor&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: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @srvproduct&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;-- vacio&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: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @provider&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;SQLNCLI&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;-- Driver&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: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @datasrc&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;N&#39;MISERVER&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: green;&quot;&gt;-- Servidor\instancia&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;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 107%;&quot;&gt;@catalog&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 107%;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 107%;&quot;&gt;&#39;base_datos&#39;&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 107%;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
En caso requiera contraseña:&lt;br /&gt;
&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_addlinkedsrvlogin&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;MISERVER&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;FALSE&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;NULL,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;sa&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;123456&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Ejecutamos la consulta:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 107%; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt;SELECT&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 107%; mso-ansi-language: EN-US; mso-font-kerning: 0pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;OPENQUERY&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;MISERVER&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;SELECT * FROM tabla&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/6453448436541935015/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2013/07/ejecutar-consulta-desde-servidor.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/6453448436541935015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/6453448436541935015'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2013/07/ejecutar-consulta-desde-servidor.html' title='Ejecutar Consulta desde Servidor Vinculado'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-771889942113234412</id><published>2011-12-09T18:51:00.000-05:00</published><updated>2011-12-09T18:51:42.263-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Corregir vinculo de usuarios SQL Server</title><content type='html'>En ocasiones cuando reinstalamos el servidor SQL Server y restauramos la Base de Datos, los datos de la tabla &lt;strong&gt;sysusers&lt;/strong&gt; de la Base de Datos restaurada no esta vinculada correctamente con los datos de la tabla &lt;strong&gt;syslogins&lt;/strong&gt; de la Base de Datos &lt;strong&gt;master&lt;/strong&gt;, para esto debemos de corregir dichos vínculos.&lt;br /&gt;
&lt;br /&gt;
Ejecutamos el siguiente comando:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;EXEC&lt;/span&gt; &lt;span style=&quot;color: #660000;&quot;&gt;sp_change_users_login&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;Auto_Fix&#39;&lt;/span&gt; , &lt;span style=&quot;color: red;&quot;&gt;&#39;usuario&#39; &lt;/span&gt;, &lt;span style=&quot;color: #444444;&quot;&gt;NULL&lt;/span&gt;, &lt;span style=&quot;color: red;&quot;&gt;&#39;contraseña&#39;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;usuario&lt;/span&gt;, es el nombre de usuario a vincular&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;contraseña&lt;/span&gt;, es la contraseña del usuario a vincular</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/771889942113234412/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/12/corregir-vinculo-de-usuarios-sql-server.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/771889942113234412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/771889942113234412'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/12/corregir-vinculo-de-usuarios-sql-server.html' title='Corregir vinculo de usuarios SQL Server'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-336415271911890002</id><published>2011-09-01T12:13:00.001-05:00</published><updated>2011-09-09T14:43:27.960-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Saber si trigger esta activo o inactivo - SQL Server</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;Use&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; mi_basedatos&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;select&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;cast (&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;name as char&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;(60)) as [Trigger], case &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;when&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; (status &amp;amp; 0x800)= 2048 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;then&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&#39;Inactivo&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&#39;Activo&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;end&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;as&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; status&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #00b050;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;sysobjects&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;where&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&#39;TR&#39;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/336415271911890002/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/09/saber-si-trigger-esta-activo-o-inactivo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/336415271911890002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/336415271911890002'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/09/saber-si-trigger-esta-activo-o-inactivo.html' title='Saber si trigger esta activo o inactivo - SQL Server'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Malecon Las Colinas, Lima, Perú</georss:featurename><georss:point>-11.867350911459308 -77.34375</georss:point><georss:box>-42.530256911459304 -117.7734375 18.795555088540691 -36.9140625</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-6470795360000681565</id><published>2011-07-25T11:35:00.002-05:00</published><updated>2011-07-25T11:37:48.785-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Métodos DataWindow"/><title type='text'>Buscar texto en columna de DataWindow</title><content type='html'>Para buscar texto en columnas de un DataWindow se utiliza el &lt;b&gt;método Find&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sintaxis:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;long dwcontrol.Find(string expresion,long fila_inicio,long fila_fin)&lt;/div&gt;&lt;br /&gt;
El método Find retorna los siguientes valores:&lt;br /&gt;
&lt;br /&gt;
• El numero de fila que contiene el texto buscado, caso contrario retorna 0&lt;br /&gt;
• En caso de error retorna:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; -1 (Error General), &lt;br /&gt;
&amp;nbsp;&amp;nbsp; -5 (Error al pasar los argumentos)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; NULL  (Si uno de los argumentos tiene valor NULL).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Nota:&lt;/b&gt; La búsqueda es case sensitive.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Búsqueda en columna tipo texto:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;búsqueda en una columna:&lt;/blockquote&gt;&lt;blockquote&gt;&lt;div style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;long ll_fila&lt;/div&gt;&lt;span style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ll_fila=dw_1.find(&quot;nom_empleado=&#39;Miguel&#39;&quot;,1,dw_1.rowcount( ))&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;búsqueda en dos columnas: &lt;/blockquote&gt;&lt;blockquote style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;long ll_fila&lt;br /&gt;
ll_fila=dw_1.find(&quot;nom_empleado=&#39;Miguel&#39; and telef_emp=&#39;5236521&#39;&quot;,1,dw_1.rowcount( ))&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;Nota:&lt;/b&gt; en una columna tipo texto, la expresión a buscar debe ir entre comillas simples.&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;Búsqueda en columna  tipo numérico:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;long ll_fila&lt;br /&gt;
ll_fila=dw_1.find(&quot;sueldo_empleado=1500&quot;,1,dw_1.rowcount( ))&lt;/blockquote&gt;&lt;blockquote&gt;búsqueda por rango de valores: &lt;/blockquote&gt;&lt;blockquote&gt;&lt;div style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;long ll_fila&lt;/div&gt;&lt;span style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ll_fila=dw_1.find(&quot;sueldo_empleado&amp;gt;=1500 and sueldo_empleado&amp;lt;=2500&quot;,1,dw_1.rowcount( )) &lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;b&gt;Nota:&lt;/b&gt; en una columna tipo numérico, la expresión a buscar NO debe ir entre comillas.&lt;/blockquote&gt;&lt;b&gt;Búsqueda en columna  tipo fecha:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote style=&quot;color: #2a2acd; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;long ll_fila&lt;br /&gt;
ll_fila=dw_1.find(&quot;fec_date=datetime(&#39;02/04/2011&#39;)&quot;,1,dw_1.rowcount( ))&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/6470795360000681565/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/07/buscar-texto-dentro-de-un-datawindow.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/6470795360000681565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/6470795360000681565'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/07/buscar-texto-dentro-de-un-datawindow.html' title='Buscar texto en columna de DataWindow'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-7830639480211836554</id><published>2011-07-15T15:26:00.001-05:00</published><updated>2011-07-15T15:31:05.484-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tipo de dato"/><title type='text'>Tipos de datos PowerBuilder</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;PowerBuilder tiene los siguientes tipos de datos&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;b&gt;&lt;u&gt;Tipos de datos estándar&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Tipo   Dato&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: left;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Descripción&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Blob&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Almacena cantidades ilimitadas de datos, por ejemplo, binario   genérico,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;imagen, archivo, etc.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Boolean&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Tipo de dato lógico, puede contener dos valores, verdadero o falso.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Char or character &lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Contiene un carácter ASCII, por ejemplo:&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;background-color: red;&quot;&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;char c&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;background-color: red;&quot;&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;c=’T’&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Date&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Contiene datos de fecha, Incluye del año 1000 al 3000. Por ejemplo.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;25-12-2010&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;DateTime&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Contiene datos de fecha y hora, por ejemplo.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;25-12-2010 10:05:00&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PowerBuilder soporta microsegundos.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 6;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Decimal or Dec&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Numero decimal con un máximo de 18 dígitos, puede colocar el punto   decimal dentro de los 18 dígitos. Por ejemplo.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;9.25632541254745214&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;123456789.365987452&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 7;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Double&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Numero con punto flotante, con 15 dígitos de precisión y un rango de &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;2.2250738585073E-308&lt;/strong&gt; a &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;1.79769313486231E+308&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 8;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Integer or Int&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Entero de 16 bit con signo, con rango de &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;-32768&lt;/strong&gt; a &lt;strong&gt;+32767&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 9;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Long&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Entero de 32 bit con signo, con rango de &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;-2147483648&lt;/strong&gt; a &lt;strong&gt;+2147483647&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 10;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;LongLong&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Entero de 64 bit&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;con signo, con rango de   &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;-9223372036854775808&lt;/strong&gt; a &lt;strong&gt;9223372036854775807&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 11;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Real&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Signo con punto flotante con seis dígitos de precisión y un rango de&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;3.402822E-38 a 3.402822E+38&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 12;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;String&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Cadena de caracteres con longitud de &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;0 a 2147483647&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 13;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Time&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;La hora en formato de 24 Horas, horas de 00 a 23, minutos de 00 a 59,   segundos de 00 a 59, y la fracción de segundos hasta 6 dígitos, por ejemplo.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 14;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;UnsignedInteger, UnsignedInt, or UInt&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Entero de 16 bit sin signo, con rango de&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;0 a 65535&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 15; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 186.35pt;&quot; valign=&quot;top&quot; width=&quot;248&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;UnsignedLong or ULong&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Entero de 32 bit sin signo, con rango de&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;strong&gt;0 a 4294967295&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Tipo de Dato &lt;span style=&quot;color: #660000;&quot;&gt;Any&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
El &lt;b&gt;tipo de dato Any&lt;/b&gt; puede contener cualquier tipo de valor, incluyendo los tipos de datos estándar, objetos, estructuras y arrays. A este &lt;b&gt;tipo de dato Any&lt;/b&gt; se le llama tipo de dato camaleón, porque toma el tipo de dato del valor asignado.&lt;br /&gt;
&lt;br /&gt;
El &lt;b&gt;tipo de dato Any&lt;/b&gt; se declare de la misma forma que los tipos de datos estándar.&lt;br /&gt;
&lt;p&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/7830639480211836554/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/07/tipos-de-datos-powerbuilder.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7830639480211836554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7830639480211836554'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/07/tipos-de-datos-powerbuilder.html' title='Tipos de datos PowerBuilder'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-482202159455154128</id><published>2011-06-27T14:47:00.002-05:00</published><updated>2011-06-28T11:50:48.279-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Contraseña"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Cambiar contraseña de inicio de sesión SQL Server</title><content type='html'>Para cambiar la contraseña de un inicio de sesión de SQL Server ejecutamos el siguiente procedimiento almacenado &lt;b&gt;sp_password&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Argumentos:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;@old :&lt;/b&gt; Es la contraseña antigua.&lt;br /&gt;
&lt;b&gt;@new:&lt;/b&gt; Es la nueva contraseña.&lt;br /&gt;
&lt;b&gt;@loginame:&lt;/b&gt; &amp;nbsp;Es el nombre de inicio de sesión.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Observaciones:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La contraseña puede contener de 1 a 128 caracteres.&lt;br /&gt;
La contraseña se almacena de forma cifrada en el campo password de la tabla &lt;b&gt;sysxlogins&lt;/b&gt; de la Base Datos &lt;b&gt;master.&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;sp_password @old = &#39;123456&#39;, @new = &#39;elmer84&#39;, @loginame =&#39;sa&#39;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;Si no se especifica el parámetro @loginame &amp;nbsp;se cambia el nombre de sesión con el cual estamos logueado.</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/482202159455154128/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/06/cambiar-contrasena-de-inicio-de-sesion.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/482202159455154128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/482202159455154128'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/06/cambiar-contrasena-de-inicio-de-sesion.html' title='Cambiar contraseña de inicio de sesión SQL Server'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-4007303756853690718</id><published>2011-05-27T17:55:00.001-05:00</published><updated>2011-05-27T17:58:26.530-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Estructura"/><category scheme="http://www.blogger.com/atom/ns#" term="Objeto parametro"/><title type='text'>Pasar datos de una ventana a otra usando objeto estructura</title><content type='html'>&lt;strong&gt;Pasar datos de una ventana a otra&lt;/strong&gt;, se puede realizar de muchas maneras, una de ellas es usando estructura de datos.&lt;br /&gt;
&lt;br /&gt;
Para el ejemplo pasaremos datos de un trabajador de la Ventana 1 a la Ventana 2.&lt;br /&gt;
&lt;br /&gt;
Para ello creamos previamente la estructura a utilizar.&lt;br /&gt;
&lt;br /&gt;
La estructura a crear es &lt;strong&gt;st_trabajador&lt;/strong&gt;, el cual tendrá código, nombre y sueldo mensuales recibidos por el trabajador, el cual se almacenara en el array sueldos_anno.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYD1t_MIF8G0H66MzLs4tLUC6rdkL_F5_3eIK7x346CbP4g_kWY-spu2ZPZvmr1hKWQD8OTizvmBQVYXSQjrJCtmD2dFAm2R207fjqc71_FdokzMOk_dyR88hKbTjYQwlff1wYG8drvik/s1600/crear_estructura_powerbuilder_2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYD1t_MIF8G0H66MzLs4tLUC6rdkL_F5_3eIK7x346CbP4g_kWY-spu2ZPZvmr1hKWQD8OTizvmBQVYXSQjrJCtmD2dFAm2R207fjqc71_FdokzMOk_dyR88hKbTjYQwlff1wYG8drvik/s320/crear_estructura_powerbuilder_2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Objeto Estructura&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Ventana 1&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Creamos la Ventana 1 y agregamos los siguientes objetos:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;sle_codigo&lt;/li&gt;
&lt;li&gt;sle_nombre&lt;/li&gt;
&lt;li&gt;sle_enero&lt;/li&gt;
&lt;li&gt;sle_febrero&lt;/li&gt;
&lt;li&gt;sle_marzo&lt;/li&gt;
&lt;li&gt;cb_pasar_datos&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; El diseño quedaría de la siguiente manera:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjxwHYUvoN8_lJlGSzl1XeeuI9GCF90476o7HUEzAnB3oebviUhkXnqci_mtU7b-Nrhx5F-FChrJfVIhdXu6dO-wUCbtbfCkcMH6K8l7oXZIh6gbl1pE_jEdI7sx2LycndDEXnkzCOEwY/s1600/crear_estructura_powerbuilder_8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjxwHYUvoN8_lJlGSzl1XeeuI9GCF90476o7HUEzAnB3oebviUhkXnqci_mtU7b-Nrhx5F-FChrJfVIhdXu6dO-wUCbtbfCkcMH6K8l7oXZIh6gbl1pE_jEdI7sx2LycndDEXnkzCOEwY/s320/crear_estructura_powerbuilder_8.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Ventana 1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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/AVvXsEglsesfAQDIhFz4zPxcSxNhMvkrcksPeAYPZq4kBtO5c91hXuBMtehcCO1oEBe4Iq7M0w9Nx-c8MrpwxPKrXmjLXl0ry2MyJ3iPeH5F6LSI9v6xim-OfhfCFZwodFwhdNl0DdVjdtLRED8/s1600/crear_estructura_powerbuilder_4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;En el evento clicked del botón &lt;b&gt;cb_pasar_datos&lt;/b&gt; ingresamos el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Instanciamos estructura st_trabajador&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador st_trabajador_parametro&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//cargamos los datos para las variables de la estructura&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador_parametro.codigo=sle_codigo.text&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador_parametro.nombre=sle_nombre.text&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Carga variable array&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador_parametro.sueldos_anno[1]=dec(sle_enero.text)&lt;span style=&quot;color: blue;&quot;&gt;//Enero&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador_parametro.sueldos_anno[2]=dec(sle_febrero.text)&lt;span style=&quot;color: blue;&quot;&gt;//Febrero&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador_parametro.sueldos_anno[3]=dec(sle_marzo.text)&lt;span style=&quot;color: blue;&quot;&gt;//Marzo&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Abrimos Ventana 2 enviando como parametro la estructura&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;OpenWithParm(w_ventana2,st_trabajador_parametro)&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi84lM6jp0PzuvcPd5dFWGqi4BD2oY4VHP2Gqgt7A-gTqXOi3xkTgyWx-WinN18ATgiB19UjcrFRoKzpM5tZKu7rnaBMHF6eMe1ldZ5LLiGyIy9pVTu9Mcz2Qk_pU1GePbleDaD-t40ZMU/s320/crear_estructura_powerbuilder_6.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;320&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Evento Clicked - cb_pasar_datos&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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/AVvXsEi84lM6jp0PzuvcPd5dFWGqi4BD2oY4VHP2Gqgt7A-gTqXOi3xkTgyWx-WinN18ATgiB19UjcrFRoKzpM5tZKu7rnaBMHF6eMe1ldZ5LLiGyIy9pVTu9Mcz2Qk_pU1GePbleDaD-t40ZMU/s1600/crear_estructura_powerbuilder_6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&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;br /&gt;
&lt;b&gt;&lt;u&gt;Ventana 2&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Creamos la Ventana 2&amp;nbsp; y agregamos los siguientes objetos:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;sle_codigo&lt;/li&gt;
&lt;li&gt;sle_nombre&lt;/li&gt;
&lt;li&gt;sle_suma_sueldos&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu7gjHgDpgD12zY9p6aIlvPwbCjUEsYtdB8Ejt7ajwoW6ISnkI7q2UEr_Pn8N2sgY0jFCPoy0iBNIFUPdgfyR4H7RUO3jpjdp6GqrpXiHVM2gaLKO9KN-W4mOAjyK_wU2gwUKUC23xS5A/s1600/crear_estructura_powerbuilder_9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu7gjHgDpgD12zY9p6aIlvPwbCjUEsYtdB8Ejt7ajwoW6ISnkI7q2UEr_Pn8N2sgY0jFCPoy0iBNIFUPdgfyR4H7RUO3jpjdp6GqrpXiHVM2gaLKO9KN-W4mOAjyK_wU2gwUKUC23xS5A/s320/crear_estructura_powerbuilder_9.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Ventana 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
En el evento open de la Ventana 2 ingresamos el siguiente código:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Instanciamos estructura st_trabajador&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;st_trabajador lst_trabajador_parametro&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;/*&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;message.powerobjectparm =&amp;gt; almacena la referencia del objeto pasado como parametro.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Usamos message.powerobjectparm porque el parametro pasado es un objeto.&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;*/&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Cargamos el paramatro a la instancia lst_trabajador_parametro&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;lst_trabajador_parametro=message.powerobjectparm&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Obtenemos los datos&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;sle_codigo.text=lst_trabajador_parametro.codigo&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;sle_nombre.text=lst_trabajador_parametro.nombre&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;//Obtenemos los datos del array&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;sle_suma_sueldos.text=string lst_trabajador_parametro.sueldos_anno[1] &amp;amp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;+ lst_trabajador_parametro.sueldos_anno[2] &amp;amp; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;+ lst_trabajador_parametro.sueldos_anno[3],&quot;###,##0.00&quot;)&lt;/span&gt; &lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3eWg8t504Ii33VekhoPmUvQ8Ur0QiSvgxwDsSAQ2taES1fyKNxIp96XltM4PgWieyhQtaoIeswmgVofZJ4MvA92f7PCWjzUAebt95hypKdcRq02f8zBcmXSNQ4eMKAYkwjToethDSDow/s1600/crear_estructura_powerbuilder_6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3eWg8t504Ii33VekhoPmUvQ8Ur0QiSvgxwDsSAQ2taES1fyKNxIp96XltM4PgWieyhQtaoIeswmgVofZJ4MvA92f7PCWjzUAebt95hypKdcRq02f8zBcmXSNQ4eMKAYkwjToethDSDow/s320/crear_estructura_powerbuilder_6.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Evento open Ventana 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Objeto Application&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;&lt;/u&gt;&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
En el evento open del objeto application ingresamos el siguiente código&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;open(w_ventana1)&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Ejecución&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;Ejecutamos la aplicación.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglsesfAQDIhFz4zPxcSxNhMvkrcksPeAYPZq4kBtO5c91hXuBMtehcCO1oEBe4Iq7M0w9Nx-c8MrpwxPKrXmjLXl0ry2MyJ3iPeH5F6LSI9v6xim-OfhfCFZwodFwhdNl0DdVjdtLRED8/s1600/crear_estructura_powerbuilder_4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglsesfAQDIhFz4zPxcSxNhMvkrcksPeAYPZq4kBtO5c91hXuBMtehcCO1oEBe4Iq7M0w9Nx-c8MrpwxPKrXmjLXl0ry2MyJ3iPeH5F6LSI9v6xim-OfhfCFZwodFwhdNl0DdVjdtLRED8/s320/crear_estructura_powerbuilder_4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Ventana 1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9GCjsdUNWtUZk1DLDZ9aR8AbyPlDfsr0vrPP_w7emhC_KP7VxkVkeiahuz8Pd-W1RpZPdFI6fHkX6fegInjbFq4seRWLusgE2m6UkOG_Z7zBRpqHH8TG_ftOlAxsR2it1DMIe2rOVj7Y/s1600/crear_estructura_powerbuilder_5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9GCjsdUNWtUZk1DLDZ9aR8AbyPlDfsr0vrPP_w7emhC_KP7VxkVkeiahuz8Pd-W1RpZPdFI6fHkX6fegInjbFq4seRWLusgE2m6UkOG_Z7zBRpqHH8TG_ftOlAxsR2it1DMIe2rOVj7Y/s320/crear_estructura_powerbuilder_5.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Ventana 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/4007303756853690718/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/05/pasar-datos-de-una-ventana-otra-usando.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/4007303756853690718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/4007303756853690718'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/05/pasar-datos-de-una-ventana-otra-usando.html' title='Pasar datos de una ventana a otra usando objeto estructura'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYD1t_MIF8G0H66MzLs4tLUC6rdkL_F5_3eIK7x346CbP4g_kWY-spu2ZPZvmr1hKWQD8OTizvmBQVYXSQjrJCtmD2dFAm2R207fjqc71_FdokzMOk_dyR88hKbTjYQwlff1wYG8drvik/s72-c/crear_estructura_powerbuilder_2.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-8433944864219146073</id><published>2011-05-18T17:32:00.001-05:00</published><updated>2011-05-23T10:13:16.452-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial PFC"/><title type='text'>Tutorial PowerBuilder Fundation Class - Parte 3</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Nuestra Primera aplicación en PowerBuilder PFC.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;br /&gt;
En las siguientes partes de este tutorial de PowerBuilder Fundation Class veremos los pasos para configurar, ejecutar y crear una aplicación usando PFC.&lt;br /&gt;
&lt;br /&gt;
Para poder seguir el tutorial y usar ejemplos prácticos, se desarrollara un pequeño sistema de ventas de artículos, el cual contara con mantenimiento de tablas maestras, cliente, artículos; Generación de comprobante de venta, Boleta o Factura y creación de reportes de ventas. Para ello haremos uso intensivo de los servicios que nos brinda PFC.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Primeros Pasos:&lt;/u&gt;&lt;/b&gt; &lt;br /&gt;
&lt;ol&gt;&lt;li&gt; Creamos nuestro&amp;nbsp;&lt;i&gt;Workspace&lt;/i&gt;&amp;nbsp;y nuestro objeto&amp;nbsp;&lt;i&gt;Application&lt;/i&gt;. &lt;/li&gt;
&lt;li&gt; Para efectos del tutorial se creara el&amp;nbsp;&lt;i&gt;Workspace&lt;/i&gt;&amp;nbsp;y el objeto&amp;nbsp;&lt;i&gt;Application&lt;/i&gt;&amp;nbsp;con el nombre&amp;nbsp;&lt;b&gt;demoventas&lt;/b&gt;. &lt;/li&gt;
&lt;li&gt; Añadimos las librerías PFC a nuestro target:&lt;br /&gt;
&lt;br /&gt;
PFCAPSRV.PBL&lt;br /&gt;
&lt;br /&gt;
PFCDWSRV.PBL&lt;br /&gt;
&lt;br /&gt;
PFCMAIN.PBL&lt;br /&gt;
&lt;br /&gt;
PFCUTIL.PBL&lt;br /&gt;
&lt;br /&gt;
PFCWNSRV.PBL&lt;br /&gt;
&lt;br /&gt;
PFEAPSRV.PBL&lt;br /&gt;
&lt;br /&gt;
PFEDWSRV.PBL&lt;br /&gt;
&lt;br /&gt;
PFEMAIN.PBL&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;PFEUTIL.PBL&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Objeto de usuario  n_cst_appmanager&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;n_cst_appmanager&lt;/i&gt; es el gestor de la aplicación y  funciona como sustituto del objeto &lt;i&gt;Application&lt;/i&gt;. Este objeto contiene muchas  funciones útiles así como referencia a variables para los servicios de aplicación.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;n_cst_appmanager&lt;/i&gt; entre otras cosas nos permite &lt;b&gt;conectarnos a la  Base de Datos&lt;/b&gt; y definir los servicios que tendrá nuestra aplicación. Este objeto lo encontramos en la librería PFEAPSRV.PBL,  la cual contiene los servicios de Aplicación.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglxalxApkrsQsp0-72PeHLf2OeIUlnMf3DCW8QICIfwvLQKGNS0lcVBPGjlPJ5ef1DEniPhTAuV19ytZBVWVQ-NnzPzYrTwzVlCTg2rzwF2dPdH-XSLZwDVp1R9JoIO7drsMPgmA0gSv8/s1600/n_cst_appmanager.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglxalxApkrsQsp0-72PeHLf2OeIUlnMf3DCW8QICIfwvLQKGNS0lcVBPGjlPJ5ef1DEniPhTAuV19ytZBVWVQ-NnzPzYrTwzVlCTg2rzwF2dPdH-XSLZwDVp1R9JoIO7drsMPgmA0gSv8/s320/n_cst_appmanager.png&quot; width=&quot;173&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;n_cst_appmanager&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
La clase ancestro de &lt;i&gt;n_cst_appmanager&lt;/i&gt; es &lt;i&gt;&lt;b&gt;pfc_ncst_app_manager&lt;/b&gt;&lt;/i&gt;, en la siguiente imagen se puede apreciar la jerarquía de herencia para la clase &lt;i&gt;n_cst_appmanager&lt;/i&gt;.&lt;br /&gt;
&lt;br /&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/AVvXsEjZ3dACJkqOVnvBV5NkpjKRmgBffyzg6e5tyADbnx1Qp8QhFkHbvhJ44ThXwqW37VLBwpTBf2-DRsdfxV3kHKpshSMLMNym9kfxw7sTh72KpEMHakoK8N_D6_V4PiJ-P9AmefY3y6FxjeM/s1600/PBPF0071.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;299&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ3dACJkqOVnvBV5NkpjKRmgBffyzg6e5tyADbnx1Qp8QhFkHbvhJ44ThXwqW37VLBwpTBf2-DRsdfxV3kHKpshSMLMNym9kfxw7sTh72KpEMHakoK8N_D6_V4PiJ-P9AmefY3y6FxjeM/s320/PBPF0071.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Instanciando n_cst_appmanager&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La mejor manera de hacer uso de la clase &lt;b&gt;n_cst_appmanager&lt;/b&gt;&amp;nbsp; es creando un objeto descendiente del mismo,&lt;b&gt; &lt;/b&gt;en el cual se agregara el código para personalizar nuestra aplicación. &lt;br /&gt;
&lt;br /&gt;
Para efectos del  tutorial &amp;nbsp;usaremos y modificaremos directamente  la clase &lt;b&gt;n_cst_appmanager&lt;/b&gt;, pero ¡cuidado!, no modificar la clase ancestro &lt;b&gt;pfc_n_cst_appmanager.&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Definimos una variable global llamada &lt;i&gt;&lt;b&gt;gnv_app&lt;/b&gt;&lt;/i&gt;, que se lee Global No Visual  Application, esta variable será del tipo n_cst_appmanager.   &lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 620px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td height=&quot;50&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;n_cst_appmanager &amp;nbsp; gnv_app&lt;/span&gt; &lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;En el evento Open de nuestro objeto &lt;i&gt;Application&lt;/i&gt; instanciamos la clase &lt;i&gt;n_cst_appmanager&lt;/i&gt; e invocamos al evento  &lt;i&gt;pfc_Open&lt;/i&gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 620px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;gnv_app = &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;CREATE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt; n_cst_appmanager&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;gnv_app.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Event&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, &amp;quot;Courier&amp;quot;, monospace;&quot;&gt;  pfc_Open(commandline)&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;En nuestro objeto &lt;i&gt;Application&lt;/i&gt;, en la pestaña General, abrimos la ventana de preferencias Additional Properties y modificamos el valor de SQLCA, por n_tr, y el de Message, por n_msg.&lt;/li&gt;
&lt;/ol&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/AVvXsEikUj7SHyhhoam1_XpCVel54vZHvUXrKRSvSmWqWlZUeYAoM9jWGywVlc_r9cn9pxet-eJqVayP10cfSMwLTwf9GqLnOF_bietGK0bIUtfEz7U6kfRohX2q6oH_NtqUiD4nJmUzKSi036o/s1600/Instanciando_n_cst_appmanager3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikUj7SHyhhoam1_XpCVel54vZHvUXrKRSvSmWqWlZUeYAoM9jWGywVlc_r9cn9pxet-eJqVayP10cfSMwLTwf9GqLnOF_bietGK0bIUtfEz7U6kfRohX2q6oH_NtqUiD4nJmUzKSi036o/s320/Instanciando_n_cst_appmanager3.png&quot; width=&quot;266&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Configurando  nuestra aplicación.&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Ahora codificamos el  objeto &lt;b&gt;&lt;i&gt;n_cst_ appmanager&lt;/i&gt; &lt;/b&gt;para que se ajuste a nuestro propósito, para  ello haremos uso de las variables de instancia e inicializaremos algunos  servicios. &lt;br /&gt;
&lt;ol&gt;&lt;li&gt;En el evento &lt;b&gt;&lt;i&gt;constructor&lt;/i&gt;&lt;/b&gt; de &lt;b&gt;&lt;i&gt;n_cst_appmanager&lt;/i&gt; &lt;/b&gt;agregamos el siguiente código.&lt;br /&gt;
&amp;nbsp;&lt;/li&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 620px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*El objeto ContextInformation, provee de informacion referente a la aplicacion que esta ejecutandose&lt;/span&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;como Numero de Versión, Nombre de la Compania, Nombre del Ejecutable, etc.*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;ContextInformation lcx_Aplicacion&lt;/span&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;br /&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;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &lt;/span&gt;li_version_mayor&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;li_version_menor&lt;/span&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;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;mso-tab-count: 1;&quot;&gt; &lt;/span&gt;ld_ahora&lt;/span&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;br /&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;ld_ahora &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; Today&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*Obtiene la version*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;GetContextService&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;ContextInformation&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; lcx_Aplicacion &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;lcx_Aplicacion&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;GetMajorVersion&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;li_version_mayor&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;lcx_Aplicacion&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;GetMinorVersion&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;li_version_menor&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*Establece el nombre de la aplicación*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;iapp_object&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;displayname &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;Demo Sistema Ventas - Tutorial PFC&#39;&lt;/span&gt;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*Activa el servicio Microhelp*/&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetMicroHelp&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; True &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/* Establece el nombre del archivo de ayuda. Poner esto solo si se dispone de la ayuda correspondiente.*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetHelpFile&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;ayuda.hlp&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/* Establece la versión&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;de la aplicacion*/&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetVersion&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;Version &#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; String&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; li_version_mayor &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; String&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; li_version_menor &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;.00&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/* Establece el logo de la aplicacion*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetLogo&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;DemoVentas.bmp&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/* Establece el mensaje de copyright*/&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetCopyRight&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;Copyright (c) 2011-&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; String&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;Year&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; ld_ahora &lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39;0000&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&#39; Demo Sistema Ventas&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*Activa el servicio de preferencia de la aplicacion*/&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetAppPreference&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; True &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; IsValid&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; inv_apppref &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;inv_apppref&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_SetRestoreApp&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; False &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;inv_apppref&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_SetRestoreUser&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; True &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;inv_apppref&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_SetUserKey&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt; of_GetUserKey&lt;span style=&quot;color: purple;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*Establece el nombre del archivo INI*/&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetAppIniFile&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;conexion.ini&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;li&gt;Creamos la ventana  principal, el cual será heredado del objeto &lt;i&gt;w_frame&lt;/i&gt;, que se encuentra en la librería  PFEMAIN.PBL. A esta nueva ventana la llamaremos &lt;i&gt;w_principal_ventas&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Codificamos el evento &lt;b&gt;&lt;i&gt;pfc_open&lt;/i&gt; &lt;/b&gt;del objeto&lt;b&gt; &lt;i&gt;n_cst_appmanager. &lt;/i&gt;&lt;/b&gt;En este evento mostraremos una venta splash,  y activaremos los servicios de registro de transacciones y de mensajes de  error. Seguidamente abriremos la ventana principal de nuestra aplicación.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 620px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;//Muestra el la ventana Splash&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_Splash&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;1&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;/*Este servicio es util cuando se utiliza más de un objeto de transaccion, al usar el servicio se consigue que al cerrar la aplicacion todos los objetos transaction se cierren y &lt;/span&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;destruyan*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetTrRegistration&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;TRUE&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;//Inicia el servicio de mensajes de error.&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;of_SetError&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;TRUE&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;//Abrimos la ventana principal&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Open&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;w_principal_ventas&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Al invocar la ventana &lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;i&gt;w_principal_ventas&lt;/i&gt;, en el evento &lt;i&gt;open&lt;/i&gt; invocaremos la función &lt;i&gt;gnv_app.of_logondlg() &lt;/i&gt;, la cual mostrara  la ventana de Login para ingresar el usuario y contraseña, para conectarnos a la  Base de Datos.&lt;br /&gt;
&lt;br /&gt;
En el evento &lt;i&gt;open &lt;/i&gt;de la ventana &lt;i&gt;w_principal_ventas &lt;/i&gt;ingresamos el  siguiente código.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 620px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&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;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;integer&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; li_return&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;//Invocamos la ventana de Login para la validacion de Ingreso&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;li_return&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; gnv_app&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_logondlg&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; li_return&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;1 &lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;SetMicroHelp(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&quot;Validación&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;de Ingreso Correcta&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;)&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Else&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;messagebox&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;gnv_app&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;iapp_object&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;DisplayName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&quot;Validación de Ingreso Incorrecta&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;StopSign!&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Close&lt;/span&gt;&lt;span style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;This&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;Return&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&amp;nbsp;El código invoca la ventana de Login para el ingreso de las credenciales de conexión, seguidamente al hacer clic en aceptar invoca al evento &lt;i&gt;pfc_logon&lt;/i&gt; del objeto &lt;i&gt;n_cst_appmanager&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;En el evento &lt;i&gt;pfc_logon&lt;/i&gt;   del objeto &lt;i&gt;n_cst_appmanager&lt;/i&gt; ingresamos el siguiente código.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 620px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; ls_inifile&lt;/span&gt;&lt;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;//Recupera el nombre del archivo INI&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;ls_inifile &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; gnv_app&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_GetAppIniFile&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;//SQLCA.of_Init, inicia los valores registrados en el archivo INI, como el DBMS, SERVERNAME, DATABASE,&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; SQLCA&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_Init&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;ls_inifile&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #660000;&quot;&gt;&quot;Login&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;1 &lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;This&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;inv_error&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_message&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;gnv_app&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;iapp_object&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;DisplayName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&quot;Error iniciando los valores de conexión, .INI no encontrado.&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;Return&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;1&lt;/span&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;span style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Else&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;//Setea los datos del usuario y contraseña ingresados&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;SQLCA&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_setlogidandpassword&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;as_userid&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;as_password&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt; SQLCA&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_Connect&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;1 &lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;This&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;inv_error&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;of_message&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;gnv_app&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;iapp_object&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;DisplayName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&quot;Error conectando a la Base Datos.&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;StopSign!&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #073763;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;OK!&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Return&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;1&lt;span style=&quot;mso-tab-count: 4;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;Return&lt;/span&gt; 1&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;End&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
El código obtiene  los datos de conexión del archivo INI, y seguidamente realiza la conexión usando las credenciales ingresadas en la ventana de Login.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
Llegado a este punto, tenemos nuestra aplicación con su respectiva ventana Login y su ventana principal.&lt;br /&gt;
&lt;br /&gt;
Como se puede observar las librerías PFC nos ahorran mucho trabajo de codificación para construir herramientas de calidad.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Si desea puede &lt;a href=&quot;http://dl.dropbox.com/u/26616495/Blog-PowerBuilder-un-dia-a-la-vez/TutorialPFC-Parte3.zip&quot; target=&quot;_blank&quot;&gt;descargar las fuentes de la aplicación&lt;/a&gt; con lo avanzado hasta el presente tutorial.&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/8433944864219146073/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/05/tutorial-powerbuilder-fundation-class.html#comment-form' title='10 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8433944864219146073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8433944864219146073'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/05/tutorial-powerbuilder-fundation-class.html' title='Tutorial PowerBuilder Fundation Class - Parte 3'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglxalxApkrsQsp0-72PeHLf2OeIUlnMf3DCW8QICIfwvLQKGNS0lcVBPGjlPJ5ef1DEniPhTAuV19ytZBVWVQ-NnzPzYrTwzVlCTg2rzwF2dPdH-XSLZwDVp1R9JoIO7drsMPgmA0gSv8/s72-c/n_cst_appmanager.png" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-1744294902513397445</id><published>2011-05-05T18:38:00.000-05:00</published><updated>2011-05-05T18:38:31.915-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Encriptar Texto"/><title type='text'>Función para encriptar y desencriptar cadena de texto</title><content type='html'>Dejo el código para encriptar y desencriptar una cadena de texto.&lt;br /&gt;
&lt;br /&gt;
Para esto creamos dos funciones, una que encripta y otra que desencripta el texto.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Función 1: f_encripta(as_origen)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 650px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td height=&quot;50&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7030a0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;String&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; vls_char, vls_result&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7030a0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;String&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; vls_str1, vls_str2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7030a0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;j&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vls_str1 = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&quot;ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz1234567890/&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vls_str2 = &quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;zaq1xsw2cde3vfr4bgt5nhy6mju7ki8lo9ñp0ZAQXSWCDEVFRBGTNHYMJUKILOÑP&amp;amp;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vls_result = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;FOR&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; j=1 &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;TO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; len(a_origen)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;vls_char = mid(a_origen,j,1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;vls_result += mid(vls_str2, pos(vls_str1, vls_char), 1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;NEXT&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;RETURN&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; vls_result&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2dWsiTaAslr9ekiG_YSTOlNT78lc0zz-4La_Q7i-l0B-4kd9BjJqClGSndmcKorq1sNB43EuCP4Df3riGcKyQL3Dc8sS0VcJAZHzVaFkkhcL9DjaQRrtd4gcn6sjNfhoCmdmp3pzQPTY/s320/f_encripta.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;320&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;f_encripta&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Función 2: f_des_encripta(a_origen)&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 650px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #7030a0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;String&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; vls_char, vls_result&lt;/span&gt;&lt;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: #7030a0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;String&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; vls_str1, vls_str2&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: #7030a0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;j&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vls_str2 = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&quot;ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz1234567890/&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vls_str1 = &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&quot;zaq1xsw2cde3vfr4bgt5nhy6mju7ki8lo9ñp0ZAQXSWCDEVFRBGTNHYMJUKILOÑP&amp;amp;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vls_result = &quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;FOR&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; j=1 &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;TO&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; len(a_origen)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;vls_char = mid(a_origen,j,1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;vls_result += mid(vls_str2, pos(vls_str1, vls_char), 1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: -21.3pt; margin-right: -63.85pt; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none; text-indent: 21.3pt;&quot;&gt;&lt;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;NEXT&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;RETURN&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; vls_result&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ2wNLtXax77MW64WOHA6pxKd_1FijlKv5zk9exvfeU45frb_OoE4r6E8w2LYJwWv05j-r3E1NsngFnhaBUQbdDWbIum84RCGM7z9V0EPoTHcbbQmuJJhoZPEfTPm7oCpavJiILeehOHs/s1600/f_desencripta.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;237&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ2wNLtXax77MW64WOHA6pxKd_1FijlKv5zk9exvfeU45frb_OoE4r6E8w2LYJwWv05j-r3E1NsngFnhaBUQbdDWbIum84RCGM7z9V0EPoTHcbbQmuJJhoZPEfTPm7oCpavJiILeehOHs/s320/f_desencripta.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;f_desencripta&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/1744294902513397445/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/05/funcion-para-encriptar-y-desencriptar.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/1744294902513397445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/1744294902513397445'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/05/funcion-para-encriptar-y-desencriptar.html' title='Función para encriptar y desencriptar cadena de texto'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2dWsiTaAslr9ekiG_YSTOlNT78lc0zz-4La_Q7i-l0B-4kd9BjJqClGSndmcKorq1sNB43EuCP4Df3riGcKyQL3Dc8sS0VcJAZHzVaFkkhcL9DjaQRrtd4gcn6sjNfhoCmdmp3pzQPTY/s72-c/f_encripta.png" height="72" width="72"/><thr:total>1</thr:total><georss:featurename>Perú</georss:featurename><georss:point>-9.189967 -75.015152</georss:point><georss:box>-18.3947285 -81.371463 0.01479450000000071 -68.658841</georss:box></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-2343932144530024218</id><published>2011-04-18T17:08:00.003-05:00</published><updated>2011-04-18T17:12:08.549-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Obtener el espacio usado por tablas, vistas e indices en base de datos SQL Server</title><content type='html'>Para &lt;b&gt;visualizar el espacio usado por las tablas,indices y vistas&lt;/b&gt;, hacemos uso del procedimiento almacenado &lt;b&gt;sp_spaceused&lt;/b&gt;, el cual muestra la cantidad de filas, la cantidad de espacio reservado en KB, el tamaño de datos en KB, el espacio usado por los indices de la tabla en KB y el espacio no utilizado en KB.&lt;br /&gt;
&lt;br /&gt;
Para visualizar el espacio utilizado por la tabla &lt;b&gt;clientes.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 650px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;EXEC&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_spaceused&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;clientes&#39;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;&lt;/span&gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Si se omite el parámetro, el procedimiento almacenado muestra el espacio utilizado por la &lt;b&gt;base de datos&lt;/b&gt; actual.&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 650px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;EXEC&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_spaceused&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Para optimizar el proceso dejo el procedimiento almacenado que lista todas las tablas y vistas.&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 650px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;PROCEDURE&lt;/span&gt; USP_OBTENER_ESTADISTICA_TABLAS&lt;/span&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;AS&lt;/span&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;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;BEGIN&lt;/span&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;br /&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;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;/*===============================*/&lt;/span&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;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;/* Estadistica Tablas &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;*/&lt;/span&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;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;/*===============================*/&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DECLARE&lt;/span&gt; @SQL &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;255&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DECLARE&lt;/span&gt; @TOTAL &lt;span style=&quot;color: blue;&quot;&gt;DECIMAL&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;18&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;0&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;br /&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;--Cursor que contiene todos los objetos que ocupan espacio &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt; objects_cursor &lt;span style=&quot;color: blue;&quot;&gt;CURSOR&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;LOCAL&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FAST_FORWARD&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;READ_ONLY&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FOR&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; NAME &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: green;&quot;&gt;sysobjects&lt;/span&gt; o &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt; &amp;nbsp;&lt;/span&gt;o&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;xtype &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;U&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;or&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&amp;nbsp;o&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;xtype &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;V&#39;&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;--Tabla temporal para albergar los resultados &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;CREATE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; #results &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;Nombre &lt;span style=&quot;color: blue;&quot;&gt;SYSNAME&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;Filas &lt;span style=&quot;color: blue;&quot;&gt;CHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;11&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Reservado &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;18&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Datos &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;18&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt; &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Tamano_Indice &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;18&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Libre &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;18&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;--Recorremos el cursor obteniendo la información de espacio ocupado &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt; @object_name &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;SYSNAME&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;OPEN&lt;/span&gt; objects_cursor &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FETCH&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;NEXT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; objects_cursor &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; @object_name&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt; &lt;span style=&quot;color: magenta;&quot;&gt;@@FETCH_STATUS&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; 0 &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt; &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; INSERT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; #results&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Nombre&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Filas&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Reservado&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Datos&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Tamano_Indice&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;Libre&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;EXEC&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;sp_spaceused&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;@object_name &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FETCH&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;NEXT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; objects_cursor &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; @object_name&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CLOSE&lt;/span&gt; objects_cursor&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DEALLOCATE&lt;/span&gt; objects_cursor&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;-- Quitamos &quot;KB&quot; para poder ordenar &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;UPDATE&lt;/span&gt; #results&amp;nbsp;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt; &lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Reservado &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;LEFT(&lt;/span&gt;Reservado&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;LEN&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Reservado&lt;span style=&quot;color: grey;&quot;&gt;)-&lt;/span&gt;3&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Datos &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;LEFT(&lt;/span&gt;Datos&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;LEN&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Datos&lt;span style=&quot;color: grey;&quot;&gt;)-&lt;/span&gt;3&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Tamano_Indice &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;LEFT(&lt;/span&gt;Tamano_Indice&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;LEN&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Tamano_Indice&lt;span style=&quot;color: grey;&quot;&gt;)-&lt;/span&gt;3&lt;span style=&quot;color: grey;&quot;&gt;),&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;Libre &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;LEFT(&lt;/span&gt;Libre&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;LEN&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;Libre&lt;span style=&quot;color: grey;&quot;&gt;)-&lt;/span&gt;3&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;--Ordenamos la información por el tamaño ocupado &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Nombre&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;Reservado &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Tamaño en Disco (KB)]&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Datos &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Datos (KB)]&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;Tamano_Indice &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; [Indices (KB)]&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;Filas &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; Filas_Total &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; #results&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;CONVERT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;bigint&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; Reservado&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;DESC&lt;/span&gt; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;--Eliminar la tabla temporal &lt;/span&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;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; #results&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;&quot;&gt;END&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/2343932144530024218/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/04/obtener-el-espacio-usado-por-tablas.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/2343932144530024218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/2343932144530024218'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/04/obtener-el-espacio-usado-por-tablas.html' title='Obtener el espacio usado por tablas, vistas e indices en base de datos SQL Server'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-8449438734053687818</id><published>2011-03-24T15:08:00.002-05:00</published><updated>2011-05-18T17:44:04.644-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codigo Fuente"/><title type='text'>Monitor de procesos SQL Server 2000</title><content type='html'>Estuve buscando en la red un &lt;strong&gt;Monitor de procesos de SQL Server&lt;/strong&gt; para poder monitorear los procesos que se ejecutan en mi servidor SQL Server 2000, encontré un software llamado Embarcadero Artisan, el cual tenia la funcionalidad que buscaba, pero desafortunadamente el software era de prueba, así que seguí buscando otra solución pero ninguna satisfacía mis expectativas. Así que decidí crear mi propio Monitor de procesos para mi Base de Datos.&lt;br /&gt;
&lt;br /&gt;
El monitor es bastante simple, tiene las siguientes funcionalidades.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Permite ver todas las conexiones en el servidor de Base de Datos.&lt;br /&gt;
&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Permite visualizar el estado de la conexión; si esta en espera, ejecutando alguna consulta, procedimiento almacenado, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Permite ver los procesos que están generando bloqueos, así como la instrucción SQL que esta ejecutando, y los recursos que bloquea, como, tablas, indice, pagina, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Permite ver los procesos que están en modo espera a que un recurso se libere para continuar con su ejecución.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Permite eliminar un proceso mediante un KILL.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Para aquellos que deseen descargar las fuentes, aquí les dejo el enlace y espero me dejen sus comentarios para ver puntos a mejorar.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.box.net/shared/cucco3miqe&quot;&gt;Descargar Fuente Monitor SQL Server&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8ZLZIi94yguNNZNDZJqVW-6Y-QuwROISK5HCJOcEvRpC84uXteV-4RuQlRwLA8DtmTdiCocflQAcTApoJT5xmFN3SE_2WyFaI2dowvxaSif43QNR4k-ihDGXMn63p4tV1B2wLP_f_jco/s1600/MonitorSQL.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8ZLZIi94yguNNZNDZJqVW-6Y-QuwROISK5HCJOcEvRpC84uXteV-4RuQlRwLA8DtmTdiCocflQAcTApoJT5xmFN3SE_2WyFaI2dowvxaSif43QNR4k-ihDGXMn63p4tV1B2wLP_f_jco/s400/MonitorSQL.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Monitor SQL - Lista Procesos&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbn13Crgxj08u44yn6Vhp-tsMXfQ2MPcH93HZwKgKI3MYE_bRQHgM8WkmNuk_zfnhC5N5dC9pbKVM_v1TlaX-Dm0A9wuXVmImSW4DbPocI7cYp_AuNhU8Y66wfofbXWNpZhLdBnvuwOu8/s1600/MonitorSQL2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbn13Crgxj08u44yn6Vhp-tsMXfQ2MPcH93HZwKgKI3MYE_bRQHgM8WkmNuk_zfnhC5N5dC9pbKVM_v1TlaX-Dm0A9wuXVmImSW4DbPocI7cYp_AuNhU8Y66wfofbXWNpZhLdBnvuwOu8/s400/MonitorSQL2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Monitor SQL - Lista Bloqueo&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Las fuentes están desarrolladas en PowerBuilder 9.0, y el monitor solo es compatible con SQL Server 2000.</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/8449438734053687818/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/monitor-de-procesos-sql-server-2000.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8449438734053687818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8449438734053687818'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/monitor-de-procesos-sql-server-2000.html' title='Monitor de procesos SQL Server 2000'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8ZLZIi94yguNNZNDZJqVW-6Y-QuwROISK5HCJOcEvRpC84uXteV-4RuQlRwLA8DtmTdiCocflQAcTApoJT5xmFN3SE_2WyFaI2dowvxaSif43QNR4k-ihDGXMn63p4tV1B2wLP_f_jco/s72-c/MonitorSQL.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-2113163390569236109</id><published>2011-03-23T11:43:00.007-05:00</published><updated>2011-03-23T14:44:37.125-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial PFC"/><title type='text'>Tutorial PowerBuilder Fundation Class - Parte 2</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Programación orientada a objetos&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La programación orientada a objetos se basa en tres principios fundamentales:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Herencia&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
La herencia hace posible que se pueda crear objetos que deriven de objetos existentes, con acceso a sus componentes visuales, data y código. La herencia mejora la codificación, maximiza la reutilización de código y mejora la consistencia.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Encapsulación&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Encapsulación, también llamado ocultación de información. Esto significa que un objeto contiene sus propios datos, permitiendo el acceso desde el exterior, según corresponda. PFC implementa encapsulación de la siguiente manera:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;PFC instancias variables  como publico o protegido, dependiendo el grado de acceso desde el exterior. El acceso de lectura a estas variables se realiza mediante funciones de objetos, PFC generalmente provee estas funciones como &lt;b&gt;&lt;i&gt;of_GetVariableName()&lt;/i&gt;&lt;/b&gt;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Para variables de tipo Boolean, PFC provee funciones &lt;b&gt;&lt;i&gt;of_Isvariablename()&lt;/i&gt;&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;Para modificar variables, PFC provee funciones &lt;b&gt;&lt;i&gt;of_Setvariablename()&lt;/i&gt;&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;En ciertos casos, PFC define variables como públicas, en estos casos el acceso es directo.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;b&gt;&lt;br /&gt;
Polimorfismo&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Polimorfismo,&lt;b&gt; &lt;/b&gt;son funciones que tienen el mismo nombre pero argumentos diferentes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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/AVvXsEhk3Kd55oCq8eQ0IN3Go8aS8xG7XUc6y7mOpL_x7igvgGyEtKacZ3kIzb1aTMIiVVu8oRwsIXzTS6JRmqTwUWmsmRli7clnHZrSit2jIZ2wFwkqWgzOMwtveAfUzJ5wQClIEv_VckQkkFI/s1600/Polimorfismo-PowerBuilder.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk3Kd55oCq8eQ0IN3Go8aS8xG7XUc6y7mOpL_x7igvgGyEtKacZ3kIzb1aTMIiVVu8oRwsIXzTS6JRmqTwUWmsmRli7clnHZrSit2jIZ2wFwkqWgzOMwtveAfUzJ5wQClIEv_VckQkkFI/s1600/Polimorfismo-PowerBuilder.png&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Nivel de extensión PFC y PFE&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;PFC implementa un nivel de extensión en todas su jerarquía de herencia, este nivel de extensión se encuentran en las librerías PFE. Cuando haya una actualización a la última versión de PFC solo se actualizara el nivel ancestro PFC.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 175.5pt;&quot; valign=&quot;top&quot; width=&quot;234&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Contenido&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 127.6pt;&quot; valign=&quot;top&quot; width=&quot;170&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Nivel Ancestro (PFC)&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.1pt;&quot; valign=&quot;top&quot; width=&quot;172&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Nivel Extensión(PFE)&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 175.5pt;&quot; valign=&quot;top&quot; width=&quot;234&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Aplicación y   servicios globales.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 127.6pt;&quot; valign=&quot;top&quot; width=&quot;170&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFCAPSRV.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.1pt;&quot; valign=&quot;top&quot; width=&quot;172&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFEAPSRV.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 175.5pt;&quot; valign=&quot;top&quot; width=&quot;234&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Servicios DataWindow&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 127.6pt;&quot; valign=&quot;top&quot; width=&quot;170&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFCDWSRV.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.1pt;&quot; valign=&quot;top&quot; width=&quot;172&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFEDWSRV.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 175.5pt;&quot; valign=&quot;top&quot; width=&quot;234&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Objetos visuales y   objetos estándar de usuario.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 127.6pt;&quot; valign=&quot;top&quot; width=&quot;170&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFCMAIN.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.1pt;&quot; valign=&quot;top&quot; width=&quot;172&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFEMAIN.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 175.5pt;&quot; valign=&quot;top&quot; width=&quot;234&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Servicios de   utilitarios&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 127.6pt;&quot; valign=&quot;top&quot; width=&quot;170&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFCUTIL.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.1pt;&quot; valign=&quot;top&quot; width=&quot;172&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFEUTIL.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 5; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 175.5pt;&quot; valign=&quot;top&quot; width=&quot;234&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Servicios de ventana&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 127.6pt;&quot; valign=&quot;top&quot; width=&quot;170&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFCWNSRV.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 129.1pt;&quot; valign=&quot;top&quot; width=&quot;172&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;PFEWNSRV.PBL&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
Cualquier modificación de la aplicación PFC se debe realizar en el nivel de extensión.  &lt;b&gt;No modifique ningún objeto del nivel ancestro&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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/AVvXsEhpBuv707Cs3vZBBkUZAeLiHyk9WmRRfIGcZ6JrSevoPaO0UYBxfc6zJRzN91a4N3ensrB1P37Xvx7nFH10qWtfQcwpHKuoZG6oSdkqwVzDjE_c8nBs277CymKnLIhDVSubZ-RtjuK71c4/s1600/Extension-PowerBuilder.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpBuv707Cs3vZBBkUZAeLiHyk9WmRRfIGcZ6JrSevoPaO0UYBxfc6zJRzN91a4N3ensrB1P37Xvx7nFH10qWtfQcwpHKuoZG6oSdkqwVzDjE_c8nBs277CymKnLIhDVSubZ-RtjuK71c4/s1600/Extension-PowerBuilder.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Convención de nombres de objetos PFC&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
PFC usa la siguiente convención de nombres:&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 144.05pt;&quot; valign=&quot;top&quot; width=&quot;192&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Nivel&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 144.05pt;&quot; valign=&quot;top&quot; width=&quot;192&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Nombre&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 144.05pt;&quot; valign=&quot;top&quot; width=&quot;192&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Objetos Ancestro&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 144.05pt;&quot; valign=&quot;top&quot; width=&quot;192&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Usa el prefijo pfc_&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 144.05pt;&quot; valign=&quot;top&quot; width=&quot;192&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Objetos Extensión&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 144.05pt;&quot; valign=&quot;top&quot; width=&quot;192&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Tiene el mismo   nombre como su ancestro, pero&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;sin el   prefijo pfc_&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Por ejemplo, el objeto ancestro para el servicio &lt;b&gt;DataWindow&lt;/b&gt; es &lt;b&gt;&lt;i&gt;pfc_n_cst_dwsrv&lt;/i&gt;&lt;/b&gt;; el objeto descendiente es &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;i&gt;n_cst_dwsrv&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/2113163390569236109/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/tutorial-powerbuilder-fundation-class_23.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/2113163390569236109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/2113163390569236109'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/tutorial-powerbuilder-fundation-class_23.html' title='Tutorial PowerBuilder Fundation Class - Parte 2'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk3Kd55oCq8eQ0IN3Go8aS8xG7XUc6y7mOpL_x7igvgGyEtKacZ3kIzb1aTMIiVVu8oRwsIXzTS6JRmqTwUWmsmRli7clnHZrSit2jIZ2wFwkqWgzOMwtveAfUzJ5wQClIEv_VckQkkFI/s72-c/Polimorfismo-PowerBuilder.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-1247795050600151594</id><published>2011-03-18T15:10:00.005-05:00</published><updated>2011-03-18T15:36:25.036-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Instrucciones DBCC"/><title type='text'>Obtener la ultima sentencia ejecutada en SQL Server mediante instrucciones DBCC</title><content type='html'>&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;¿Que es una instrucción DBCC?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El lenguaje de programación&lt;b&gt; &amp;nbsp;Transact-SQL&amp;nbsp;&lt;/b&gt;proporciona instrucciones &lt;b&gt;DBCC&lt;/b&gt; que se ejecutan como comandos de consola para Microsoft SQL Server, existe una gran variedad de instrucciones &lt;b&gt;DBCC&lt;/b&gt; que sirven para obtener información vital de SQL Server, así como corregir problemas.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;DBCC &amp;nbsp;INPUTBUFFER&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Para obtener la ultima sentencia ejecutada en SQL Server, hacemos uso de la instrucción &lt;b&gt;DBCC INPUTBUFFER, &lt;/b&gt;el cual presenta la ultima instrucción enviada desde un cliente hacia el Servidor SQL Server.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Parámetros&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SPID, &lt;/i&gt;Id otorgado al cliente cuando realiza una conexión.&lt;br /&gt;
&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WITH NO_INFOMSGS&lt;/i&gt;, &amp;nbsp;elimina los mensajes informativos.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Uso&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DBCC &lt;/span&gt;INPUTBUFFER(50) &lt;span style=&quot;color: blue;&quot;&gt;WITH NO_INFOMSGS&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/1247795050600151594/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/obtener-la-ultima-sentencia-ejecutada.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/1247795050600151594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/1247795050600151594'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/obtener-la-ultima-sentencia-ejecutada.html' title='Obtener la ultima sentencia ejecutada en SQL Server mediante instrucciones DBCC'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-4850417143921175888</id><published>2011-03-16T15:43:00.000-05:00</published><updated>2011-03-16T15:43:01.853-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial PFC"/><title type='text'>Tutorial PowerBuilder Fundation Class PFC - Parte 1</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Hoy empezaremos con el tutorial de PowerBuilder Fundation Class, el cual tiene el propósito de ir conociendo esta nueva arquitectura de librerías llamada PowerBuilder Fundation Class que por sus siglas se conoce como PFC.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
En cada post se irá tratando temas acerca de estas librerías y sus objetos e ir avanzando gradualmente hasta poder construir aplicaciones basadas en PFC.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
Antes que nada revisemos el artículo sobre &lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/03/powerbuilder-fundation-class-pfc.html&quot;&gt;¿qué es PFC?&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
Ahora que sabemos que es PFC hablemos sobre las librerías y objetos.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
PFC esta liberado como una conjunto de librerías PowerBuilder (PBLs). Estas librerías contienen los objetos ancestros y descendientes que podemos usar para construir aplicaciones con PFC.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Librerias PowerBuilder&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Antes de usar algún objeto PFC, debemos añadir las librerías PFC a nuestras librerías de aplicación, en nuestro PATH donde estamos trabajando.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Objetos PowerBuilder&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Estos son los principales objetos que se usa con PFC:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Objetos&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Propósito&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Windows&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;La interfaz entre el   usuario y la aplicación PowerBuilder.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Menus&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Lista de opciones   que se usara para seleccionar o abrir alguna ventana.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Objeto DataWindow &lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Usado para recuperar,   presentar y manipular los datos.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Objetos de Usuario&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 216.1pt;&quot; valign=&quot;top&quot; width=&quot;288&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Componentes   reusables que se definen una sola vez y se puede usar muchas veces.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;Hay dos tipos de objetos de usuario:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
- &lt;strong&gt;Objeto de usuario visual&lt;/strong&gt;&lt;br /&gt;
&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;- &lt;strong&gt;Objeto de usuario de clase (no visual)&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;Objeto de usuario visual&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;ul&gt;Un objeto de usuario visual es un control visual reusable que contiene un comportamiento predefinido. PFC incluye dos tipos de objetos de usuario visual: &amp;nbsp;&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;Objeto de usuario visual estándar&lt;/b&gt;, PFC  proporciona un completo conjunto de objetos visuales estándar, estos objetos incluyen comportamientos pre definido y una completa integración con los servicios PFC. Por ejemplo el objeto de usuario visual &lt;b&gt;u_dw&lt;/b&gt; es un objeto DataWindow el cual ofrece una extensa funcionalidad e integración con los servicios PFC.&lt;br /&gt;
&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;b&gt;Objeto de usuario visual Personalizado&lt;/b&gt;, PFC también utiliza objetos de usuario visual personalizados que contienen un grupo de controles. Estos objetos proporcionan funcionalidades avanzadas para usarlas en situaciones específicas.&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;ES-PE&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #660000;&quot;&gt;Objeto de usuario de clase (no visual)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Estos objetos heredan las definiciones del  PowerBuilder NonVisualObject class, estos objetos &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encapsulan datos y código.  Este tipo de objeto de usuario le permite definir un objeto de cero.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PFC usa estos tipo de objetos para implementar muchos de sus servicios.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;mso-ansi-language: ES-PE;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/4850417143921175888/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/tutorial-powerbuilder-fundation-class.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/4850417143921175888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/4850417143921175888'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/tutorial-powerbuilder-fundation-class.html' title='Tutorial PowerBuilder Fundation Class PFC - Parte 1'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-7600456271132211767</id><published>2011-03-09T15:28:00.001-05:00</published><updated>2011-03-10T16:07:45.471-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PFC"/><title type='text'>PowerBuilder Fundation Class - PFC</title><content type='html'>Muchos de nosotros que programamos en PowerBuilder y pensamos utilizarlo para desarrollar aplicaciones empresariales, debemos conocer el conjunto de librerías que pone a disposición Sybase para que nuestro desarrollo sea más productivo y eficiente. Estas librerías son conocidas como &lt;strong&gt;PowerBuilder Fundation Class (PFC)&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
Aquel que domine el uso adecuado y eficiente de estas librerías contara con un abanico de características y utilidades para desarrollar aplicaciones de calidad, ya que estas librerías han sido creadas por expertos, usando las técnicas más avanzadas en el uso de objetos.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Pero, ¿qué es PowerBuilder Fundation Class?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El &lt;strong&gt;PowerBuilder Fundation Class (PFC)&lt;/strong&gt;, es un conjunto de objetos PowerBuilder que usted puede personalizar y usar para desarrollar bibliotecas de clases.&lt;br /&gt;
&lt;br /&gt;
PFC está escrito en PowerBuilder y entregados como objetos de PowerBuilder con soporte de código PowerScript. Utiliza técnicas avanzadas de codificación orientado a objetos, y asegura que la aplicación utiliza la mínima cantidad de recursos de la computadora.&lt;br /&gt;
&lt;br /&gt;
Las PFC están liberadas como un conjunto de librerías PowerBuilder (PBL). Estas librerías contienen los objetos ancestros (Padre) y los objetos descendientes (Hijo) que se utilizara para escribir una aplicación con PFC. Antes de usar algún objeto PFC se debe copiar las librerías PFC (PBL) a la ruta de nuestra aplicación y agregarle a nuestro Workspace.&lt;br /&gt;
&lt;br /&gt;
La arquitectura interna PFC se basa en dos capas, &lt;strong&gt;PFC&lt;/strong&gt; y &lt;strong&gt;PFE&lt;/strong&gt;, donde cada objeto en la capa PFC tiene un descendiente en la capa PFE. La capa PFC contiene toda la funcionalidad, y la capa PFE es donde podemos escribir nuevo código para ampliar las funcionalidades de un objeto para una necesidad determinada.&lt;br /&gt;
&lt;br /&gt;
A continuación las &lt;strong&gt;librerías PFC&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 104.65pt;&quot; valign=&quot;top&quot; width=&quot;140&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Librería&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 344.25pt;&quot; valign=&quot;top&quot; width=&quot;459&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Contenido&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 104.65pt;&quot; valign=&quot;top&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFCAPSRV.PBL&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFEAPSRV.PBL&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 344.25pt;&quot; valign=&quot;top&quot; width=&quot;459&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Administrador de Aplicación, Servicio de objetos Aplicación y otros   servicios de objetos globales&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 104.65pt;&quot; valign=&quot;top&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFCDWSRV.PBL&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFEDWSRV.PBL&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 344.25pt;&quot; valign=&quot;top&quot; width=&quot;459&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Servicios de DataWindow, objetos de usuario y utilidades de ventana.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 104.65pt;&quot; valign=&quot;top&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFCMAIN.PBL&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFEMAIN.PBL&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 344.25pt;&quot; valign=&quot;top&quot; width=&quot;459&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Objetos visuales estándar, Objetos visuales personalizados.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 104.65pt;&quot; valign=&quot;top&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFCUTIL.PBL&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFEUTIL.PBL&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 344.25pt;&quot; valign=&quot;top&quot; width=&quot;459&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Objetos de utilidades y servicios.&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 5; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 104.65pt;&quot; valign=&quot;top&quot; width=&quot;140&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFCWNSRV.PBL&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;PFEWNSRV.PBL&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0cm 5.4pt 0cm 5.4pt; width: 344.25pt;&quot; valign=&quot;top&quot; width=&quot;459&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;&quot;&gt;Servicios de ventana, objetos de usuario y utilidades de ventana&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/7600456271132211767/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/powerbuilder-fundation-class-pfc.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7600456271132211767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7600456271132211767'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/powerbuilder-fundation-class-pfc.html' title='PowerBuilder Fundation Class - PFC'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-7817685866253456717</id><published>2011-03-01T18:35:00.006-05:00</published><updated>2011-04-04T16:13:18.931-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API Windows"/><title type='text'>Abrir archivos desde PowerBuilder usando la API de Windows</title><content type='html'>Muestro el&amp;nbsp;código&amp;nbsp;usado para abrir cualquier archivo usando la &lt;b&gt;&lt;i&gt;API&lt;/i&gt;&lt;/b&gt; de &lt;b&gt;&lt;i&gt;Windows.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Para empezar declaramos la función &lt;b&gt;API&amp;nbsp;ShellExecuteA()&lt;/b&gt; que se utilizara, esta funcion se declarara en la sección &lt;b&gt;Global External Functions&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td height=&quot;50&quot;&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;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 35.4pt; margin-right: 0cm; margin-top: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 14px;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;long&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; ShellExecuteA( &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;ulong&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; hWnd, &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; Operation, &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; lpFile, &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&amp;nbsp; lpParameters, &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; lpDirectory, &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;int&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; nShowCmd ) &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;LIBRARY&lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: maroon; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&quot;shell32.dll&quot;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 14px;&quot;&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;color: maroon; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
El&amp;nbsp;código&amp;nbsp;para invocar al API es:&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: purple; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;br /&gt;
Long&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;hwnd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: purple;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: small; margin-bottom: 0.0001pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: Courier; font-size: 10pt;&quot;&gt;//w_principal viene a ser la ventana padre donde se ejecuta la función.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: purple;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;hwnd = handle(w_principal)&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
ShellExecuteA(hwnd,&quot;open&quot;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #660000; font-family: Courier; font-size: 10pt;&quot;&gt;&quot;c:\archivo_abrir.doc&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #660000; font-family: Courier; font-size: 10pt;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #660000; font-family: Courier; font-size: 10pt;&quot;&gt;&quot;c:\&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: Courier; font-size: 10pt;&quot;&gt;,1)&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
A modo ejemplo se abre el archivo&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #660000; font-family: Courier; font-size: 13px; line-height: 14px;&quot;&gt;&quot;c:\archivo_abrir.doc&quot;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/7817685866253456717/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/abrir-archivos-desde-powerbuilder.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7817685866253456717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7817685866253456717'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/03/abrir-archivos-desde-powerbuilder.html' title='Abrir archivos desde PowerBuilder usando la API de Windows'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-8066657878173506818</id><published>2011-02-28T15:52:00.008-05:00</published><updated>2011-03-02T12:48:18.366-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DataWindowChild"/><title type='text'>¿Qué es un DataWindowChild?</title><content type='html'>Un &lt;b&gt;DataWindowChild&lt;/b&gt; es un &lt;b&gt;DropDownDataWindow&lt;/b&gt; en un objeto &lt;b&gt;DataWindow&lt;/b&gt;. Un &lt;b&gt;DropDownDataWindow&lt;/b&gt; se comporta como un objeto &lt;b&gt;Child&lt;/b&gt; (hijo) del &amp;nbsp;&lt;b&gt;DataWindow&lt;/b&gt; que lo contiene.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Los &lt;b&gt;DataWindowChild&lt;/b&gt; son útiles por ejemplo para mostrar información de tablas maestras en forma de listado ó filtrar información de un campo.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;¿Cómo se crea un DataWindowChild?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Veamos un ejemplo.&lt;br /&gt;
&lt;br /&gt;
Se tiene un campo &lt;b&gt;cod_area&lt;/b&gt;, &amp;nbsp;el cual al seleccionar muestra un listado de todas las áreas de una empresa.&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;En la imagen tenemos los datos de la tabla maestra que almacena las &lt;b&gt;Areas&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjilOdObC1cw4ccMZTB1FT8VDmUJy8_xaljNAWK1Px1bueRQ6KTNDDZGJ8cqQMjLZBTDpq4WSpg90HahHRTQ0gsyBjcCH7TCtyusnnggdy7ZS8cFLHcbSmIDIf0jVt5VhF1PE0jxI5sVwU/s1600/Tabla_maestra_area.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjilOdObC1cw4ccMZTB1FT8VDmUJy8_xaljNAWK1Px1bueRQ6KTNDDZGJ8cqQMjLZBTDpq4WSpg90HahHRTQ0gsyBjcCH7TCtyusnnggdy7ZS8cFLHcbSmIDIf0jVt5VhF1PE0jxI5sVwU/s1600/Tabla_maestra_area.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Listado Tabla Area&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;li&gt;Se crea el objeto &lt;b&gt;DataWindow&lt;/b&gt; que será vinculado como &lt;b&gt;Child&lt;/b&gt; y mostrará el listado de &lt;b&gt;Areas&lt;/b&gt;. Este objeto se crea según los datos de la tabla maestra Area. &amp;nbsp;En este &lt;b&gt;DataWindow&lt;/b&gt; solo debe mostrarse los campos que se desea visualizar. Guardamos el objeto con el nombre d_area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA3Q4kgRa_wxR4SEbcLsADsmTYuGX3fHg_mgNVCrWJVTtiQuhyphenhyphens6YuV0yCBvqG_YpR2RnbhMGlC3NgwkTXiRNUNdvT8TJfOYiiECNUuttIp3_uULnFgsw-3-2wkAgvD2wWvZRuhz32mQY/s1600/DataWindowChild2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;303&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA3Q4kgRa_wxR4SEbcLsADsmTYuGX3fHg_mgNVCrWJVTtiQuhyphenhyphens6YuV0yCBvqG_YpR2RnbhMGlC3NgwkTXiRNUNdvT8TJfOYiiECNUuttIp3_uULnFgsw-3-2wkAgvD2wWvZRuhz32mQY/s400/DataWindowChild2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Objeto DataWindow que se vinculara como Child&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;li&gt;Seleccionamos el campo &lt;b&gt;cod_area&lt;/b&gt; en el cual se creara el vinculo y nos desplazamos a la pestaña &lt;b&gt;Edit&lt;/b&gt; de la ventana de propiedades, en la opción &lt;b&gt;Style Type&lt;/b&gt; seleccionamos la opción &lt;b&gt;DropDownDW&lt;/b&gt;, &amp;nbsp;en la misma pestaña nos desplazamos hacia abajo y buscamos la opción &lt;b&gt;DataWindow&lt;/b&gt;, hacemos clic y seleccionamos el &lt;b&gt;DataWindow&lt;/b&gt; creado en el paso 2. En la opción &lt;b&gt;Display Column&lt;/b&gt; seleccionamos el campo &lt;b&gt;des_area&lt;/b&gt; que viene a ser el nombre, en la opción &lt;b&gt;Data Column&lt;/b&gt; seleccionamos el campo &lt;b&gt;cod_area&lt;/b&gt; que es el código del area seleccionada.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8sh-WQva-crfu5uvHTkW2llYP1uH2Rnpx-b0QwXqWYzdqhn5hRIqKq0OYQ7MdiLUoLW1hHZT13Z_1LWbKwIFjYlX_I4kiBzW_q03zBMtZKDIn7-_YSn6mGrX6jx7wJZOEuIMemaQT8Bk/s1600/DataWindowChild1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8sh-WQva-crfu5uvHTkW2llYP1uH2Rnpx-b0QwXqWYzdqhn5hRIqKq0OYQ7MdiLUoLW1hHZT13Z_1LWbKwIFjYlX_I4kiBzW_q03zBMtZKDIn7-_YSn6mGrX6jx7wJZOEuIMemaQT8Bk/s400/DataWindowChild1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Objeto DataWindow que contiene el Child&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/ol&gt;&lt;ol&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9YckJByjVrxNB3liKpJP7JlF2JPRe1iWDHiHV0p7Gj6z6YbFHM5QmmdMk7dNA04nhgguPlQqbkWemICRgD9QQmk_htpWEK0j-VgHsN_YB4x8NaiET4xoRlZLMWt4lu3VM9DGXqiS5u_A/s1600/DataWindowChild3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9YckJByjVrxNB3liKpJP7JlF2JPRe1iWDHiHV0p7Gj6z6YbFHM5QmmdMk7dNA04nhgguPlQqbkWemICRgD9QQmk_htpWEK0j-VgHsN_YB4x8NaiET4xoRlZLMWt4lu3VM9DGXqiS5u_A/s400/DataWindowChild3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Objeto DataWindow que contiene el Child&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;li&gt;El listado final del campo &lt;b&gt;cod_area&lt;/b&gt; seria como la imagen siguiente.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghxe1kQXLhLwtxyGIck7Ao63r6luQoq-FYK25zw1LjRMvLBSK3IX0m-ovrrJ0gmoTYUbzZ3ObD3HC9HQMq03GZBnLvF4_GhV8j3RP4Hji4Uiqa0shyphenhyphenkda3rWs_vvGVJ5m2m2xIZifI3wI/s1600/DataWindowChild4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghxe1kQXLhLwtxyGIck7Ao63r6luQoq-FYK25zw1LjRMvLBSK3IX0m-ovrrJ0gmoTYUbzZ3ObD3HC9HQMq03GZBnLvF4_GhV8j3RP4Hji4Uiqa0shyphenhyphenkda3rWs_vvGVJ5m2m2xIZifI3wI/s200/DataWindowChild4.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Vista Final&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/8066657878173506818/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/que-es-un-datawindowchild.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8066657878173506818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8066657878173506818'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/que-es-un-datawindowchild.html' title='¿Qué es un DataWindowChild?'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjilOdObC1cw4ccMZTB1FT8VDmUJy8_xaljNAWK1Px1bueRQ6KTNDDZGJ8cqQMjLZBTDpq4WSpg90HahHRTQ0gsyBjcCH7TCtyusnnggdy7ZS8cFLHcbSmIDIf0jVt5VhF1PE0jxI5sVwU/s72-c/Tabla_maestra_area.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-8874010899331236534</id><published>2011-02-24T17:02:00.002-05:00</published><updated>2011-04-04T16:23:09.697-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DataStore"/><title type='text'>DataWindow no visual, DataStore</title><content type='html'>El &lt;b&gt;DataStore&lt;/b&gt; es un control &lt;b&gt;DataWindow&lt;/b&gt; no visual, las ventaja principal de usar un &lt;b&gt;DataStore&lt;/b&gt; frente a un &lt;b&gt;DataWindow&lt;/b&gt; es que&amp;nbsp;consume menos recursos, por ende es mas eficiente en recuperar datos.&lt;br /&gt;
&lt;br /&gt;
La manipulación de un &lt;b&gt;DataStore&lt;/b&gt; es similar a un &lt;b&gt;DataWindow&lt;/b&gt;. En el siguiente ejemplo dejo el&amp;nbsp;código&amp;nbsp;para declarar y recuperar datos usando un &lt;b&gt;DataStore.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&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;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;DataStore ds_prueba &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Declara variable del tipo DataStore&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;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&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;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ds_prueba=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Create&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; DataStore &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Se Instancia la variable&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;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ds_prueba.DataObject=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&quot;dw_authors&quot; /&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 class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;/Se establece el objeto DataWindow&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;br /&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;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ds_prueba.SetTransObject(SQLCA) &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Se conecta a la BD&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;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;color: black; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ds_prueba.Retrieve() &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Recupera la información&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Nota: el &lt;b&gt;DataObject &lt;/b&gt;siempre se establece antes de conectar el &lt;b&gt;DataStore &lt;/b&gt;a la Base de Datos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;Articulos de apoyo:&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/conexion-sql-server-2000-desde.html&quot; style=&quot;color: #3778cd; text-decoration: none;&quot;&gt;Conexión a SQL Server&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/conexion-sql-server-mediante-ole-db.html&quot; style=&quot;color: #3778cd; text-decoration: none;&quot;&gt;Conexion a SQL Server mediante OLE DB&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/conectar-powerbuilder-con-base-de-datos.html&quot;&gt;Conexion a MySQL&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comments&quot;&gt;¿Dudas?&lt;/a&gt;, &lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comments&quot;&gt;¿Comentarios?&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/8874010899331236534/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/datawindow-no-visual-datastore.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8874010899331236534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8874010899331236534'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/datawindow-no-visual-datastore.html' title='DataWindow no visual, DataStore'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-4930786105328306386</id><published>2011-02-24T14:45:00.003-05:00</published><updated>2011-04-04T16:22:27.776-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Funciones SQL Server"/><title type='text'>Crear columna de IDENTIDAD usando función IDENTITY en SQL Server</title><content type='html'>En &lt;b&gt;SQL Server&lt;/b&gt; existe una función llamada &lt;b&gt;IDENTITY&lt;/b&gt;, la cual permite crear una &lt;b&gt;columna de identidad&lt;/b&gt; en una nueva tabla.&lt;br /&gt;
&lt;br /&gt;
Esta&amp;nbsp;función&amp;nbsp;se utiliza en instrucciones &lt;b&gt;SELECT INTO.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;Otro punto importante es que esta&amp;nbsp;función&amp;nbsp;es distinta a la propiedad &lt;b&gt;IDENTITY &lt;/b&gt;que se utiliza con la sentencia &lt;b&gt;CREATE TABLE&lt;/b&gt; y &lt;b&gt;ALTER TABLE&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&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;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;nombre&lt;span style=&quot;color: grey;&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; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&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; apellido&lt;span style=&quot;color: grey;&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; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&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; &lt;span style=&quot;color: blue;&quot;&gt;IDENTITY&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INTEGER&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;100&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;1&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt; Id_emp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;INTO&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; empleado_2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; empleado&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
En el&amp;nbsp;código&amp;nbsp;anterior se crea una nueva tabla llamada empleado_2, y se crea la columna Id_emp el cual es un campo &lt;b&gt;IDENTITY&lt;/b&gt; el cual su indice iniciara del numero 100 y se incrementara en 1.&lt;br /&gt;
&lt;br /&gt;
Nota: Esta función &lt;b&gt;IDENTITY&lt;/b&gt; no admite pasar valores mediante variables.</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/4930786105328306386/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/crear-columna-de-identidad-usando.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/4930786105328306386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/4930786105328306386'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/crear-columna-de-identidad-usando.html' title='Crear columna de IDENTIDAD usando función IDENTITY en SQL Server'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-8302949202829003441</id><published>2011-02-23T16:18:00.002-05:00</published><updated>2011-04-04T16:21:49.354-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Validación DataWindow"/><title type='text'>Validar campos de un Datawindow usando propiedad “required”</title><content type='html'>El objeto DataWindow cuenta con un&amp;nbsp;método&amp;nbsp;llamado&amp;nbsp;&lt;b&gt;FindRequired()&amp;nbsp;&lt;/b&gt;el cual devuelve aquellas columnas que han sido marcadas como &quot;requeridas&quot;, y contienen valores Null.&lt;br /&gt;
&lt;br /&gt;
Antes, especificamos los campos que seran validados con sus respectivos mensajes, para eso entramos en modo diseño en el &lt;b&gt;DataWindow&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Seleccionamos el campo a validar, luego seleccionamos la propiedad &lt;b&gt;required &lt;/b&gt;que se encuentra en la pestaña Edit&lt;br /&gt;
&lt;br /&gt;
Nos desplazamos en la lista de de columnas y escribimos el mensaje que deseamos que se muestre en el mensaje de validación.&lt;br /&gt;
&lt;br /&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/AVvXsEhNdxxgG1kw9iUXzxzAOzXES8VyplHOpybRnsUawUrscCu-gKR_axtBQWnt8XELEpjbh9zNYpYcRbYTNoWyBjawLlkWSY7LNBnafN-N_EImfCJRAGABAIe1YL6jnZWaJmI94Jqb6m9VXtQ/s1600/validacion_datawindow.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNdxxgG1kw9iUXzxzAOzXES8VyplHOpybRnsUawUrscCu-gKR_axtBQWnt8XELEpjbh9zNYpYcRbYTNoWyBjawLlkWSY7LNBnafN-N_EImfCJRAGABAIe1YL6jnZWaJmI94Jqb6m9VXtQ/s400/validacion_datawindow.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Ahora si, estamos listos para escribir el&amp;nbsp;código&amp;nbsp;de&amp;nbsp;validación.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;long&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ll_row &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Almacena&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;la fila en donde se encuentra el campo con valor null.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;integer&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; li_columna &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Almacena el&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp;numero de columna con valor null.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_colname &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Almacena el&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;nombre de la columna con valor null.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;string&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_columna &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Almacena el mensaje de validación de la columna.&lt;/span&gt;&lt;/span&gt;&lt;br /&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;dw_1.AcceptText()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ll_row=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;li_columna = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;dw_1.FindRequired(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Primary!,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ll_row, li_columna,ls_colname, &lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;True&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;br /&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;span style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;IF&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; ll_row &amp;lt;&amp;gt; 0 &lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;THEN&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dw_1.SetColumn(li_columna)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dw_1.ScrollToRow(ll_row)&lt;/span&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;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Obtenemos el mensaje de validación obtenido.&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;ls_columna= dw_1.&lt;/span&gt;&lt;span style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;describe&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(ls_colname+&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.ValidationMsg&#39;&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;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&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 lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Quitamos las comillas del mensaje de&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 13px;&quot;&gt;validación.&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ls_columna=left(ls_columna,len(ls_columna)-1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_columna=mid(ls_columna,2,len(ls_columna))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;dw_1.SetFocus()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;//Mostramos el mensaje de validación.&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; messagebox(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Verifique&quot;,&lt;/span&gt;ls_columna,&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Exclamation!&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt; line-height: 115%;&quot;&gt;END IF&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comments&quot;&gt;¿Dudas?&lt;/a&gt;, &lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comments&quot;&gt;¿Comentarios?&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/8302949202829003441/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/validar-campos-de-un-datawindow-usando.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8302949202829003441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/8302949202829003441'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/validar-campos-de-un-datawindow-usando.html' title='Validar campos de un Datawindow usando propiedad “required”'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNdxxgG1kw9iUXzxzAOzXES8VyplHOpybRnsUawUrscCu-gKR_axtBQWnt8XELEpjbh9zNYpYcRbYTNoWyBjawLlkWSY7LNBnafN-N_EImfCJRAGABAIe1YL6jnZWaJmI94Jqb6m9VXtQ/s72-c/validacion_datawindow.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-5307207891358907695</id><published>2011-02-22T12:36:00.003-05:00</published><updated>2011-07-25T11:36:11.854-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Filtros DataWindow"/><category scheme="http://www.blogger.com/atom/ns#" term="Métodos DataWindow"/><title type='text'>Filtrar datos de columna en DataWindow</title><content type='html'>&lt;div class=&quot;MsoNormal&quot;&gt;El &lt;b&gt;&lt;i&gt;DataWindow&lt;/i&gt;&lt;/b&gt; cuenta con los métodos &lt;b&gt;&lt;i&gt;SetFilter()&lt;/i&gt;&lt;/b&gt; y &lt;b&gt;&lt;i&gt;Filter()&lt;/i&gt;&lt;/b&gt; para realizar filtros&amp;nbsp;según el criterio que le indiquemos.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;En el ejemplo realizamos diversos tipos de filtrado:&lt;/div&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;,Courier,monospace; font-size: 13px; line-height: 14px;&quot;&gt;//Filtro por rango de fecha.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span lang=&quot;ES-PE&quot;&gt;dw_1.SetFilter&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; line-height: 115%;&quot;&gt;(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-size: 10pt; line-height: 115%;&quot;&gt;&quot;FechaNac&amp;gt;=datetime(&#39;01/01/1988&#39;) AND FechaNac&amp;lt;=da&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-size: 10pt; line-height: 115%;&quot;&gt;tetime(&#39;01/01/1990&#39;)&quot;&lt;/span&gt;&lt;span lang=&quot;ES-PE&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;span lang=&quot;ES-PE&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;dw_1.Filter()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt; line-height: 115%;&quot;&gt;// Filtro por campo único&lt;/span&gt;&lt;span lang=&quot;ES-PE&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;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;dw_1.SetFilter&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-size: 10pt; line-height: 115%;&quot;&gt;(&quot;Cod_empleado=&#39;PMA42628M&#39;&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;dw_1.Filter()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;,Courier,monospace; font-size: 10pt; line-height: 115%;&quot;&gt;//Filtro según modelo usando caracteres comodín&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span lang=&quot;ES-PE&quot;&gt;dw_1.SetFilter(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-size: 10pt; line-height: 115%;&quot;&gt;&quot;(Nombre like &#39;%maria%&#39;) and (Apellido like &#39;%rodriguez%&#39;)&quot;&lt;/span&gt;&lt;span lang=&quot;ES-PE&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;span lang=&quot;ES-PE&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;dw_1.Filter()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;,Courier,monospace; font-size: 10pt; line-height: 115%;&quot;&gt;//Filtro por rango de número&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;dw_1.SetFilter(&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: maroon; font-size: 10pt; line-height: 115%;&quot;&gt;&quot;Edad &amp;gt;20 and &amp;nbsp;Edad&amp;lt;=30&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span lang=&quot;ES-PE&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: 11pt; line-height: 115%;&quot;&gt;dw_1.Filter()&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
El&amp;nbsp;método&amp;nbsp;&lt;b&gt;SetFilter()&lt;/b&gt; establece los criterios de filtrado.&lt;br /&gt;
&lt;br /&gt;
El&amp;nbsp;método&amp;nbsp;&lt;b&gt;Filter()&lt;/b&gt; ejecuta el filtro&amp;nbsp;según&amp;nbsp;los criterios establecidos.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comments&quot;&gt;¿Dudas?&lt;/a&gt;, &lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comments&quot;&gt;¿Comentarios?&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/5307207891358907695/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html#comment-form' title='7 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/5307207891358907695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/5307207891358907695'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/filtrar-datos-de-columna-en-datawindow.html' title='Filtrar datos de columna en DataWindow'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-7394983778198046283</id><published>2011-02-16T12:35:00.002-05:00</published><updated>2011-04-04T16:20:24.570-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerBuilder"/><title type='text'>Ejecutar Procedimiento Almacenado en PowerBuilder</title><content type='html'>En el ejemplo mostrare como ejecutar un &lt;i&gt;&lt;b&gt;Procedimiento Almacenado&lt;/b&gt;&lt;/i&gt; de &lt;i&gt;&lt;b&gt;SQL Server&lt;/b&gt;&lt;/i&gt; desde &lt;i&gt;&lt;b&gt;PowerBuilder.&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Mostraremos tres escenarios distintos:&lt;br /&gt;
&lt;br /&gt;
1. Cuando el &lt;b&gt;&lt;i&gt;Procedimientos Almacenado&lt;/i&gt;&lt;/b&gt; devuelve uno o más parámetros de salida también llamado parámetro &lt;b&gt;&lt;i&gt;OUTPUT&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
2. Cuando &amp;nbsp;devuelve un conjunto de resultados producto de una sentencia &lt;b&gt;&lt;i&gt;select&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
3. El tercero y más simple, cuando el &lt;b&gt;&lt;i&gt;Procedimiento Almacenado&lt;/i&gt;&lt;/b&gt; no tiene parámetro alguno.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Escenario 1:&lt;/b&gt; Cuando el &lt;b&gt;&lt;i&gt;Procedimiento Almacenado&lt;/i&gt;&lt;/b&gt; devuelve valor mediante variables &lt;b&gt;&lt;i&gt;OUTPUT&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Primero definimos el código del &lt;b&gt;&lt;i&gt;Procedimiento Almacenado&lt;/i&gt;&lt;/b&gt;, el cual su función es devolver el producto de la multiplicación del valor de parámetro1 y el valor de PI que es 3.1416.&lt;br /&gt;
&lt;br /&gt;
Ojo, devemos definir el parametro de retorno como &lt;b&gt;&lt;i&gt;OUTPUT&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;CREATE&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;PROCEDURE&lt;/span&gt; usp_escenario1 &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;@parametro1 &lt;span style=&quot;color: blue;&quot;&gt;INTEGER&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;@parametro2 &lt;span style=&quot;color: blue;&quot;&gt;DECIMAL&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;18&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;2&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;OUTPUT&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;AS&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;BEGIN&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;SET&lt;/span&gt; @parametro2&lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;@parametro1 &lt;span style=&quot;color: grey;&quot;&gt;*&lt;/span&gt; 3.1416&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;END&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
En la cuadro siguiente el código de PowerBuilder usado.&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&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;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; Valor&lt;/span&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;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Decimal&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; Resultado&lt;/span&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;br /&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;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Valor=10&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Considerar que las variables que se pasen deben ser del mismo tipo&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//definido en el procedimiento almacenado&lt;/span&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;br /&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;span style=&quot;color: #008200; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; sp_procedure &lt;span style=&quot;color: #008200;&quot;&gt;PROCEDURE&lt;/span&gt; &lt;span style=&quot;color: #008200;&quot;&gt;FOR&lt;/span&gt; usp_escenario1&lt;/span&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;span style=&quot;color: maroon; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;parametro1 = :Valor,&lt;/span&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;span style=&quot;color: maroon; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;parametro2 = :Resultado OUTPUT; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Ojo definir el parametro2 como OUTPUT.&lt;/span&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;br /&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;br /&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;span style=&quot;color: #008200; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;EXECUTE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sp_procedure; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Ejecutamos con el nombre del Alias&lt;/span&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;br /&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;span style=&quot;color: #008200; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;FETCH&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sp_procedure &lt;span style=&quot;color: #008200;&quot;&gt;INTO&lt;/span&gt; :Resultado; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Recuperamos el resultado&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: #008200; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;CLOSE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sp_procedure;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;messagebox(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;&quot;&lt;/span&gt;,Resultado)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-vyCH5Fz-mSI/TVv_O9ycz5I/AAAAAAAAACg/u-6tSUYQ4Ro/s1600/PowerBuilder-Procedimientos+Almacenados.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-H26stA_BMy0/TVv-NeQ-sFI/AAAAAAAAACc/HE5BuxMMn8A/s1600/PowerBuilder-Procedimientos+Almacenados.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;b&gt;Escenario 2 y Escenario 3: &lt;/b&gt;Cuando devuelve un conjunto de resultados producto de una sentencia &lt;b&gt;&lt;i&gt;select&lt;/i&gt;&lt;/b&gt; y cuando el procedimiento no tiene parámetros, como diría mi abuela aquí matamos dos pájaros de un tiro, abordando los dos últimos escenarios restantes.&lt;br /&gt;
&lt;br /&gt;
Para una mejor manipulación de los resultados devueltos por un &lt;b&gt;&lt;i&gt;Procedimiento Almacenado&lt;/i&gt;&lt;/b&gt; es aconsejable realizarlo mediante un &lt;b&gt;&lt;i&gt;DataWindow&lt;/i&gt;&lt;/b&gt;, pero eso será tema de otro artículo.&lt;br /&gt;
&lt;br /&gt;
Definimos el código del &lt;b&gt;&lt;i&gt;Procedimiento Almacenado&lt;/i&gt;&lt;/b&gt;, el cual no pasamos ningún parámetro simplemente ejecutamos el procedimiento y recuperamos el conjunto de resultados.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;CREATE&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;PROCEDURE&lt;/span&gt; usp_escenario2_3&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;AS&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;BEGIN&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; #cliente&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: grey; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(&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&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; codigo &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; nombre &lt;span style=&quot;color: blue;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;15&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&amp;nbsp; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; #cliente &lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;1&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;PEPE&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; #cliente &lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;2&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;JUAN&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;INSERT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; #cliente &lt;span style=&quot;color: blue;&quot;&gt;VALUES&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;3&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;MARIA&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; codigo&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;nombre &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; #cliente&lt;/span&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;span style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
En la cuadro siguiente el código de PowerBuilder usado.&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&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;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Integer&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; codigo&lt;/span&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;span style=&quot;color: #7030a0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &amp;nbsp;nombre&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Considerar que las variables que se pasen deben ser del mismo tipo definido en&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//el procedimiento almacenado&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sp_procedure &lt;span style=&quot;color: darkgreen;&quot;&gt;PROCEDURE FOR&lt;/span&gt; usp_escenario2_3;&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;EXECUTE&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sp_procedure; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Ejecutamos con el nombre del Alias&lt;/span&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;br /&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;span style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;FETCH&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sp_procedure &lt;span style=&quot;color: darkgreen;&quot;&gt;INTO&lt;/span&gt; :codigo,:nombre; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//Recuperamos el resultado&lt;/span&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;br /&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;DO WHILE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; sqlca.sqlcode = 0 &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Messagebox(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Resultado&quot;&lt;/span&gt;,&lt;span style=&quot;color: #7030a0;&quot;&gt;string&lt;/span&gt;(codigo)+&quot; &quot; +nombre)&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: darkgreen;&quot;&gt;FETCH&lt;/span&gt; sp_procedure INTO :codigo,:nombre; &lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LOOP&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&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;span lang=&quot;EN-US&quot; style=&quot;color: darkgreen; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;CLOSE&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp; sp_procedure;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;Articulos de apoyo:&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/conexion-sql-server-2000-desde.html&quot;&gt;Conexión a SQL Server&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://powerbuilder-undiaalavez.blogspot.com/2011/02/conexion-sql-server-mediante-ole-db.html&quot;&gt;Conexion a SQL Server mediante OLE DB&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/7394983778198046283/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/procedimientos-almacenados-powerbuilder.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7394983778198046283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/7394983778198046283'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/procedimientos-almacenados-powerbuilder.html' title='Ejecutar Procedimiento Almacenado en PowerBuilder'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-3062271672257342234</id><published>2011-02-12T13:33:00.000-05:00</published><updated>2011-02-18T17:23:37.856-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PowerBuilder"/><title type='text'>¿Por qué y para qué es bueno PowerBuilder?</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbK89Ice-hDCkByQ9IqOPGHWaQtAYIE7PfJ0VOJPJbt97cqBqY5szmcln1vp7Fbas-R8vKyUH9tuBZieNz1lE8UKYuwGmJiJchxus57KRcZ547XlTOHPs9czu3Ze7l0Y4EAyl4hZUAAbk/s1600/PowerBuilder.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbK89Ice-hDCkByQ9IqOPGHWaQtAYIE7PfJ0VOJPJbt97cqBqY5szmcln1vp7Fbas-R8vKyUH9tuBZieNz1lE8UKYuwGmJiJchxus57KRcZ547XlTOHPs9czu3Ze7l0Y4EAyl4hZUAAbk/s1600/PowerBuilder.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;PowerBuilder&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot;&gt;En algún momento nos hemos hecho la misma pregunta, &lt;strong&gt;¿Que es PowerBuilder?&lt;/strong&gt;, &lt;strong&gt;¿Para que sirve PowerBuilder?,&lt;/strong&gt; o también, &lt;strong&gt;¿Es bueno PowerBuilder?&lt;/strong&gt;, pero antes de nada un poco de historia. &lt;br /&gt;
&lt;br /&gt;
PowerBuilder fue desarrollado hace ya muchos años atrás, en los años 1991 bajo el mando de la compañía PowerSoft lanzando la versión 1.0, la versión 2.0 fue lanzada en 1992, en esta versión PowerBuilder incluye la herencia y encapsulación, haciendo de PowerBuilder un lenguaje netamente orientado a objetos. &amp;nbsp;En 1995 PowerSoft fue adquirida por la compañía Sybase, lanzando las versiones sucesoras.&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot;&gt;PowerBuilder es una herramienta empresarial, para arquitecturas &amp;nbsp;cliente/servidor , distribuida y web, orientado completamente a objetos, adicionalmente &lt;b&gt;PowerBuilder posee un objeto nativo para la gestión y manipulación de datos llamado DataWindow&lt;/b&gt; el cual nos permite Insertar, Actualizar, Eliminar datos, adicionalmente nos permite visualizar los datos en múltiples formatos y vistas según la necesidad.&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot;&gt;&lt;b&gt;El objeto DataWindow se ha convertido en la piedra angular de PowerBuilder, hace que el trabajo con datos sea realmente sencillo, donde el programador con pocas líneas de código pueda tener una interfaz de usuario con validación y actualización de datos en minutos, haciendo más productivo la etapa de desarrollo.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Desde mi punto de vista PowerBuilder es por excelencia el mejor Lenguaje de Programación para desarrollar herramientas y sistemas empresariales para la gestión de datos, este es quizá su punto fuerte y donde mejor se desempeña.&lt;/div&gt;&lt;div align=&quot;justify&quot; class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
He leído en la página de Sybase donde indica que PowerBuilder es un lenguaje de programación de propósito general, pero a mi modo de ver no es así, PowerBuilder no es recomendable para desarrollar aplicaciones de uso general, donde PoweBuilder es experto e idóneo, y como ya lo mencione es en la Gestión de Datos, es ahí donde PowerBuilder es la mejor elección.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/3062271672257342234/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/por-que-y-para-que-es-bueno.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/3062271672257342234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/3062271672257342234'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/por-que-y-para-que-es-bueno.html' title='¿Por qué y para qué es bueno PowerBuilder?'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbK89Ice-hDCkByQ9IqOPGHWaQtAYIE7PfJ0VOJPJbt97cqBqY5szmcln1vp7Fbas-R8vKyUH9tuBZieNz1lE8UKYuwGmJiJchxus57KRcZ547XlTOHPs9czu3Ze7l0Y4EAyl4hZUAAbk/s72-c/PowerBuilder.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-5990140684115317598</id><published>2011-02-11T18:49:00.002-05:00</published><updated>2011-04-04T16:19:03.549-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cuadro dialogo"/><title type='text'>Mostrar cuadro de dialogo &quot;Abrir&quot; para seleccionar un archivo</title><content type='html'>Aquí dejo un ejemplo de cómo utilizar el cuadro de dialogo &lt;b&gt;&lt;i&gt;Abrir&lt;/i&gt;&lt;/b&gt; para seleccionar un archivo de nuestro ordenador y guadar la ruta y el nombre del archivo en una variable.&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #cc0066; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: purple;&quot;&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt; &amp;nbsp;&amp;nbsp; ls_ruta, ls_file&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;GetFileOpenName(&#39;Elegir Archivo&#39;,ls_ruta, ls_file,&quot;XLS&quot;,&quot;Texto (*.txt),*.txt,Excel (*.xls),*.xls&quot;) &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;/*&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;- &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 115%;&quot;&gt;El primer&lt;/span&gt;&lt;span style=&quot;color: blue; line-height: 115%;&quot;&gt; parámetro &amp;nbsp;indicamos el titulo que tendrá el cuadro de dialogo&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;- El segundo parámetro, s&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;i seleccionas un solo archivo guarda la ruta &amp;nbsp;completa del archivo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;Ejm: &quot;C:\imagenes\miarchivo.jpg&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;Si, seleccionase más de un archivo, guarda la ruta del directorio donde se encuentra el archivo seleccionado.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp; &amp;nbsp;Ejm: &quot;C:\imagenes&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;- El tercer parámetro &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Almacena el nombre del archivo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;- El &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;cuarto parámetro es opcional, indicamos el tipo de archivo por defecto definidos en el filtro.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;- El quinto parámetro es opcional, ahi indicamos el filtro para que se muestre determinados archivos&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;*/&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00b050;&quot;&gt;if&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; ls_ruta = &#39;&#39; OR IsNull(ls_ruta) &lt;span style=&quot;color: #00b050;&quot;&gt;then return&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;//Valida que exista el archivo&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #00b050;&quot;&gt;if&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp; FileExists(ls_ruta)=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: #00b050;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;span style=&quot;color: #00b050;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;messagebox(&quot;Verifique&quot;,&quot;El archivo no existe&quot;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: #00b050;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00b050;&quot;&gt;end if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/5990140684115317598/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/mostrar-cuadro-de-dialogo-abrir-para.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/5990140684115317598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/5990140684115317598'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/mostrar-cuadro-de-dialogo-abrir-para.html' title='Mostrar cuadro de dialogo &quot;Abrir&quot; para seleccionar un archivo'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7802142352168198317.post-5216562421284666173</id><published>2011-02-09T11:21:00.002-05:00</published><updated>2011-04-04T16:18:38.971-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Conectar PowerBuilder con Base de Datos MySQL 5.x</title><content type='html'>PowerBuilder puede trabajar de manera excelente con MySQL, la conexión se realiza mediante conexión ODBC usando el driver que el mismo MySQL pone a disposición y que lo pueden descargar en este enlace &lt;a href=&quot;http://www.mysql.com/downloads/connector/odbc/&quot; target=&quot;_blank&quot;&gt;http://www.mysql.com/downloads/connector/odbc/&lt;/a&gt; . La conexión se realizara sin necesidad de crear ningún DSN, si no de manera directa.&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Para el ejemplo nos conectaremos a la base de datos mysql.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Este ejemplo considera que se tiene acceso al servidor MySQL así como a la base de datos mysql.&lt;/div&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#EFEFEF&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; height=&quot;50&quot; style=&quot;width: 600px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;     &lt;td height=&quot;50&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;SQLCA.dbms=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #660000; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;ODBC&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif;&quot;&gt;  &lt;div style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;SQLCA.dbparm=&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #660000; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&quot;ConnectString=&#39;DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost;PORT=3306;DATABASE=mysql;UID=usuario;PWD=contrasena;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #660000; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;OPTION=135168;DisableBind=1;&#39;&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: .0001pt; margin: 0cm;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: ES; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;connect using&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt; line-height: 115%; mso-ansi-language: ES; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;&quot;&gt;&amp;nbsp; SQLCA;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Nota:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;En la sección &quot;DRIVER={}&quot; la conexión puede variar según la versión del driver que descarguemos de la página de MySQL, para el ejemplo se descargo el driver mysql-connector-odbc-5.1.6-win32&lt;/li&gt;
&lt;li&gt;Los parámetros usados SERVER,PORT, DATABASE,UID,PWD puede variar según la configuración actual de su servidor.&lt;/li&gt;
&lt;/ul&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt; line-height: 115%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://powerbuilder-undiaalavez.blogspot.com/feeds/5216562421284666173/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/conectar-powerbuilder-con-base-de-datos.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/5216562421284666173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7802142352168198317/posts/default/5216562421284666173'/><link rel='alternate' type='text/html' href='http://powerbuilder-undiaalavez.blogspot.com/2011/02/conectar-powerbuilder-con-base-de-datos.html' title='Conectar PowerBuilder con Base de Datos MySQL 5.x'/><author><name>Elmer Ventocilla</name><uri>http://www.blogger.com/profile/01402669062531852893</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>