<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ayuda con tus Tareas &#187; VB</title>
	<atom:link href="http://ayuda.fotopex.com/category/programacion/vb/feed/" rel="self" type="application/rss+xml" />
	<link>http://ayuda.fotopex.com</link>
	<description>En forma fácil</description>
	<lastBuildDate>Sat, 04 Sep 2010 16:22:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Crear un formulario flotante dentro de otro</title>
		<link>http://ayuda.fotopex.com/programacion/vb/crear-un-formulario-flotante-dentro-de-otro/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/crear-un-formulario-flotante-dentro-de-otro/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 02:16:33 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/crear-un-formulario-flotante-dentro-de-otro/</guid>
		<description><![CDATA[Por ahí encontré un ejemplo en VB 6.0 de como llamar datos de un formulario desplegando automáticamente dentro de otro. Clic para descargar el archivo]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/04/formulario-dentro-otro.JPG" width="475" height="254" alt="formulario-dentro-otro.JPG" class="imageframe imgaligncenter" /></p>
<p>Por ahí encontré un ejemplo en <strong>VB 6.0</strong> de como llamar datos de un formulario desplegando automáticamente dentro de otro.<br />

 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense468x60, creado 4/12/08 */
google_ad_slot = "4898031349";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 </p>
<div class="imageframe" style="width:360px;"><a href="http://ayuda.fotopex.com/wp-content/uploads/2008/04/formmodal.zip" title="formmodal.zip"><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/floppy.jpg" width="48" height="48" alt="floppy.jpg" />
<div class="imagecaption">Clic para descargar el archivo</div>
<p></a></div>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/crear-un-formulario-flotante-dentro-de-otro/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cómo eliminar una tabla de una base de datos con Visual Basic</title>
		<link>http://ayuda.fotopex.com/programacion/vb/como-eliminar-una-tabla-de-una-base-de-datos-con-visual-basic/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/como-eliminar-una-tabla-de-una-base-de-datos-con-visual-basic/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 19:27:16 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/como-eliminar-una-tabla-de-una-base-de-datos-con-visual-basic/</guid>
		<description><![CDATA[Cuando elimina una tabla, también se eliminan todos los datos almacenados en aquella tabla. Si desea conservar los datos de la tabla, va a eliminar, escribir una aplicación Visual Basic con la que copia los datos a una tabla nueva antes de eliminar la tabla existente. Primer Ejemplo Texto Plano Visual Basic: Function BorraTablaTemp&#40;&#41; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Cuando elimina una tabla, también se eliminan todos los datos almacenados en aquella tabla. Si desea conservar los datos de la tabla, va a eliminar, escribir una aplicación Visual Basic con la que copia los datos a una tabla nueva antes de eliminar la tabla existente.<br />

 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense468x60, creado 4/12/08 */
google_ad_slot = "4898031349";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 </p>
<p>Primer Ejemplo</p>
<div class="igBar"><span id="lvb-4"><a href="#" onclick="javascript:showPlainTxt('vb-4'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-4">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Function</span> BorraTablaTemp<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Dim</span> DataBaseName, TableName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Dim</span> DB <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Database</span>, t <span style="color: #b1b100;">As</span> TableDef</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Dim</span> TableExists <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Boolean</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; DataBaseName = App.<span style="color: #66cc66;">Path</span> &amp; <span style="color: #ff0000;">"\data.mdb"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; TableName = <span style="color: #ff0000;">"tmpTabla"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">GoTo</span> errorhandler</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Set</span> DB = Workspaces<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">OpenDatabase</span><span style="color:#006600; font-weight:bold;">&#40;</span>DataBaseName<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Set</span> t = DB.<span style="color: #66cc66;">TableDefs</span><span style="color:#006600; font-weight:bold;">&#40;</span>TableName<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; TableExists = <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">If</span> TableExists <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; DB.<span style="color: #66cc66;">Execute</span> <span style="color: #ff0000;">"Drop Table "</span> &amp; TableName </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; DB.<span style="color: #b1b100;">Close</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">errorhandler:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Raise</span> <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Number</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Segundo Ejemplo:<br />
hacemos una copia de la base de datos para borrar la tabla del ejemplo.</p>
<div class="igBar"><span id="lvb-5"><a href="#" onclick="javascript:showPlainTxt('vb-5'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-5">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Function</span> BorraTablaTemp<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Dim</span> sourcedb&nbsp; <span style="color: #b1b100;">as</span> <span style="color: #b1b100;">string</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Dim</span> destdb <span style="color: #b1b100;">as</span> <span style="color: #b1b100;">string</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; sourcedb = <span style="color: #ff0000;">"c:\VB3\BIBLIO.MDB"</span>&nbsp; <span style="color: #808080;">' Base Original</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; destdb = <span style="color: #ff0000;">"C:\TEST.MDB"</span>&nbsp; &nbsp; &nbsp;<span style="color: #808080;">' Base que utilizaremos para el ejemplo</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">FileCopy</span> sourcedb, destdb&nbsp; <span style="color: #808080;">' Hacemos la copia</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Dim</span> db <span style="color: #b1b100;">As</span> Connection</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Set</span> db = <span style="color: #b1b100;">New</span> Connection</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; db.<span style="color: #66cc66;">CursorLocation</span> = adUseClient</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; db.<span style="color: #b1b100;">Open</span> <span style="color: #ff0000;">"PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source="</span> &amp; destdb &amp; <span style="color: #ff0000;">";"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; db.<span style="color: #66cc66;">Execute</span> <span style="color: #ff0000;">"Drop Table tmpTabla"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Tercer Ejemplo:<br />
Genera un Recordset y recorre tabla por tabla hasta encontrar la que deseamos borrar.</p>
<div class="igBar"><span id="lvb-6"><a href="#" onclick="javascript:showPlainTxt('vb-6'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-6">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Function</span> BorraTablaTemp<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> cn <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">New</span> ADODB.<span style="color: #66cc66;">Connection</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> rs <span style="color: #b1b100;">As</span> ADODB.<span style="color: #b1b100;">Recordset</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> sql <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; cn.<span style="color: #b1b100;">Open</span> <span style="color: #ff0000;">"PROVIDER=Microsoft.Jet.OLEDB.4.0;"</span> &amp; <span style="color: #ff0000;">"Persist Security Info=False;"</span> &amp; _</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Data Source="</span> &amp; App.<span style="color: #66cc66;">Path</span> &amp; <span style="color: #ff0000;">"\data.mdb"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Set</span> rs = cn.<span style="color: #66cc66;">OpenSchema</span><span style="color:#006600; font-weight:bold;">&#40;</span>adSchemaTables, <span style="color: #b1b100;">Array</span><span style="color:#006600; font-weight:bold;">&#40;</span>Empty, Empty, Empty, <span style="color: #ff0000;">"TABLE"</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Do</span> <span style="color: #b1b100;">While</span> <span style="color: #b1b100;">Not</span> rs.<span style="color: #b1b100;">EOF</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> rs!TABLE_NAME = <span style="color: #ff0000;">"tmpTabla"</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sql = <span style="color: #ff0000;">"DROP TABLE "</span> &amp; rs!TABLE_NAME</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cn.<span style="color: #66cc66;">Execute</span> sql, , adCmdText</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Do</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; rs.<span style="color: #66cc66;">MoveNext</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Loop</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/como-eliminar-una-tabla-de-una-base-de-datos-con-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La sentencia If&#8230;Then&#8230;Else</title>
		<link>http://ayuda.fotopex.com/programacion/vb/la-sentencia-ifthenelse/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/la-sentencia-ifthenelse/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 17:08:57 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/la-sentencia-ifthenelse/</guid>
		<description><![CDATA[Referencia del Lenguaje Visual Basic If…Then…Else (Instrucciones) Ejecuta de forma condicional un grupo de instrucciones, dependiendo del valor de una expresi&#243;n. If condition [ Then ] [ statements ] [ ElseIf elseifcondition [ Then ] [ elseifstatements ] ] [ Else [ elsestatements ] ] End If O bien If condition Then [ statements ] [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 */ 
google_ad_slot = "1220677556";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>Referencia del Lenguaje Visual Basic</p>
<p><strong>If…Then…Else</strong> (Instrucciones)<br />
Ejecuta de forma condicional un grupo de instrucciones, dependiendo del valor de una expresi&oacute;n.</p>
<p><strong>If condition [ Then ]<br />
[ statements ]<br />
[ ElseIf elseifcondition [ Then ]<br />
[ elseifstatements ] ]<br />
[ Else<br />
[ elsestatements ] ]<br />
End If</strong></p>
<p>O bien</p>
<p>If condition Then [ statements ] [ Else elsestatements ]</p>
<p><strong>condition</strong><br />
Requerido. es una expresion que debe evaluarse como True o False, o como un tipo de datos que sea impl&iacute;citamente convertible a Boolean.<br />
<span id="more-95"></span><br />
<strong>statements</strong><br />
Opcional en formato de m&uacute;ltiples l&iacute;neas; se requiere en formato de una sola l&iacute;nea que no tenga una cl&aacute;usula Else. Se ejecutan una o m&aacute;s instrucciones que siguen a If…Then si condition es True.</p>
<p><strong>elseifcondition</strong><br />
Requerido si est&aacute; presente ElseIf. Igual que condition.</p>
<p><strong>elseifstatements</strong><br />
Opcional. Se ejecutan una o m&aacute;s instrucciones que siguen a ElseIf…Then si la elseifcondition asociada es True.</p>
<p><strong>elsestatements</strong><br />
Opcional en formato de m&uacute;ltiples l&iacute;neas; se requiere en formato de una sola l&iacute;nea que tenga una cl&aacute;usula Else. Una o m&aacute;s instrucciones que se ejecuten si ninguna de las expresiones anteriores condition o elseifcondition es True.</p>
<p><strong>End If</strong><br />
Termina un bloque If…Then.</p>
<p><strong>Comentarios</strong><br />
Puede utilizar la forma de una sola l&iacute;nea para pruebas cortas y sencillas. Sin embargo, el formato de m&uacute;ltiples l&iacute;neas proporciona m&aacute;s estructura y flexibilidad que el formato de una sola l&iacute;nea y, generalmente, es m&aacute;s f&aacute;cil de leer, mantener y depurar.</p>
<p>Con el formato de una sola l&iacute;nea, es posible ejecutar varias instrucciones como resultado de una decisi&oacute;n If…Then. Todas las instrucciones deben estar en la misma l&iacute;nea y separadas por dos puntos, como en el ejemplo siguiente:</p>
<p>If A > 10 Then A = A + 1 : B = B + A : C = C + B</p>
<p>En el formato de m&uacute;ltiples l&iacute;neas, la instrucci&oacute;n If debe ser la &uacute;nica instrucci&oacute;n en la primera l&iacute;nea.</p>
<p>Las instrucciones <strong>Else</strong>, <strong>ElseIf </strong>y <strong>End If</strong> pueden ir precedidas solamente por una etiqueta de l&iacute;nea.<br />
La instrucci&oacute;n <strong>If…Then…Else</strong> de varias l&iacute;neas debe finalizar con una instrucci&oacute;n <strong>End If</strong>.</p>
<p>Para determinar si una instrucci&oacute;n If introduce un formato de m&uacute;ltiples l&iacute;neas, examine lo que sigue a la palabra clave Then. Si aparece cualquier otra cosa que no sea un comentario despu&eacute;s de Then en la misma instrucci&oacute;n, &eacute;sta se trata como una instrucci&oacute;n If de una sola l&iacute;nea. Si Then no est&aacute; definida, debe ser el comienzo de una instrucci&oacute;n <strong>If…Then…Else</strong> de m&uacute;ltiples l&iacute;neas.</p>
<p>Las cl&aacute;usulas ElseIf y Else son opcionales. Puede tener tantas cl&aacute;usulas ElseIf como desee en una instrucci&oacute;n <strong>If…Then…Else</strong> de m&uacute;ltiples l&iacute;neas, pero no puede aparecer ninguna despu&eacute;s de una cl&aacute;usula Else.</p>
<p>Los formatos de m&uacute;ltiples l&iacute;neas pueden anidarse unos dentro de otros.</p>
<p>Cuando se encuentra una <strong>If…Then…Else</strong> de m&uacute;ltiples l&iacute;neas, se prueba <strong>condition</strong>. Si condition es True, se ejecutan las instrucciones que est&aacute;n a continuaci&oacute;n de <strong>Then</strong>. Si condition es False, se eval&uacute;a cada instrucci&oacute;n <strong>ElseIf </strong>en orden. Cuando se encuentra una <strong>elseifcondition </strong>True, se ejecutan las instrucciones que siguen inmediatamente a la instrucci&oacute;n <strong>Then </strong>asociada. Si<br />
ninguna <strong>elseifcondition </strong>se eval&uacute;a como True, o no existen instrucciones <strong>ElseIf</strong>, se ejecutan las instrucciones que siguen a <strong>Else</strong>.<br />
Despu&eacute;s de la ejecuci&oacute;n de las instrucciones que siguen a <strong>Then, ElseIf o Else</strong>, la ejecuci&oacute;n contin&uacute;a con la instrucci&oacute;n que sigue a <strong>End If</strong>.</p>
<p>Sugerencia<br />
Select…Case puede ser m&aacute;s &uacute;til cuando se eval&uacute;a una &uacute;nica expresi&oacute;n que tiene varios valores posibles.</p>
<p>Ejemplo:<br />
En este ejemplo se muestran los formatos de m&uacute;ltiples l&iacute;neas y de una sola l&iacute;nea de la instrucci&oacute;n <strong>If…Then…Else</strong>.</p>
<div class="igBar"><span id="lvb-8"><a href="#" onclick="javascript:showPlainTxt('vb-8'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-8">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> Number, Digits <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> MyString <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Number = <span style="color: #cc66cc;color:#800000;">53</span> <span style="color: #808080;">'Initialize variable.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> Number &lt;<span style="color: #cc66cc;color:#800000;">10</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Digits = <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">ElseIf</span> Number &lt;<span style="color: #cc66cc;color:#800000;">100</span> <span style="color: #b1b100;">Then</span> <span style="color: #808080;">' la condiciÃ³n evalua a verdadero entonces la instruccion es ejecutada.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Digits = <span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Digits = <span style="color: #cc66cc;color:#800000;">3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Asignamos el valor usando una simple linea.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> Digits = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #b1b100;">Then</span> MyString = <span style="color: #ff0000;">"Uno"</span> <span style="color: #b1b100;">Else</span> MyString = <span style="color: #ff0000;">"Mas que uno"</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Puede utilizar la palabra clave TypeOf para determinar si el </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'objeto Control que se pasa a un procedimiento es un cuadro de texto.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Sub</span> ControlProcessor<span style="color:#006600; font-weight:bold;">&#40;</span>ByVal MyControl <span style="color: #b1b100;">As</span> Control<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> TypeOf MyControl Is ComboBox <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.<span style="color: #66cc66;">WriteLine</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"You passed in a "</span> &amp; <span style="color: #b1b100;">TypeName</span><span style="color:#006600; font-weight:bold;">&#40;</span>MyControl<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">ElseIf</span> TypeOf MyControl Is CheckBox <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.<span style="color: #66cc66;">WriteLine</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"You passed in a "</span> &amp; <span style="color: #b1b100;">TypeName</span><span style="color:#006600; font-weight:bold;">&#40;</span>MyControl<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">ElseIf</span> TypeOf MyControl Is TextBox <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.<span style="color: #66cc66;">WriteLine</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"You passed in a "</span> &amp; <span style="color: #b1b100;">TypeName</span><span style="color:#006600; font-weight:bold;">&#40;</span>MyControl<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/la-sentencia-ifthenelse/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Selección múltiple de archivos VB6</title>
		<link>http://ayuda.fotopex.com/programacion/vb/seleccion-multiple-de-archivos-vb6/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/seleccion-multiple-de-archivos-vb6/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 22:39:42 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/seleccion-multiple-de-archivos-vb6/</guid>
		<description><![CDATA[En este ejemplo al seleccionar varios archivos los mismos se copiaran a una carpeta espec&#237;fica, pero antes verificar&#225; si ya existen. Vamos crear un nuevo proyecto y colocaremos un control Commondialog y un bot&#243;n. Ahora debemos de agregar al proyecto el control Microsoft Commond Dialog. Dando un clic en el men&#250; Proyect > Components. Tambi&#233;n [...]]]></description>
			<content:encoded><![CDATA[<p>En este ejemplo al seleccionar varios archivos los mismos se copiaran a una carpeta espec&iacute;fica, pero antes verificar&aacute; si ya existen.<br />

 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense468x60, creado 4/12/08 */
google_ad_slot = "4898031349";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 </p>
<p>Vamos crear un nuevo proyecto y colocaremos un control Commondialog y un bot&oacute;n. </p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/formulario.png" width="323" height="243" alt="formulario.png" class="imageframe" /></p>
<p>Ahora debemos de agregar al proyecto el control <strong>Microsoft Commond Dialog</strong>. Dando un clic en el men&uacute; <strong>Proyect </strong>> <strong>Components</strong>.<br />
<span id="more-66"></span><br />
<img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/control-commond-dialog.png" width="364" height="323" alt="control-commond-dialog.png" class="imageframe" /></p>
<p>Tambi&eacute;n debemos de agregar la referencia <strong>Microsoft Scripting Runtime</strong>, la cual la encontraremos en el mismo men&uacte; <strong>Proyect</strong>. </p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/referencias-scripting-runtime.png" width="359" height="286" alt="referencias-scripting-runtime.png" class="imageframe" /></p>
<p>Y finalmente el c&oacute;digo y sus comentarios.</p>
<div class="igBar"><span id="lvb-10"><a href="#" onclick="javascript:showPlainTxt('vb-10'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-10">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Api para copiar Archivos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> CopyFile Lib <span style="color: #ff0000;">"kernel32"</span> Alias <span style="color: #ff0000;">"CopyFileA"</span> _</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal lpExistingFileName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, ByVal lpNewFileName _</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, ByVal bFailIfExists <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Function</span> FileExists<span style="color:#006600; font-weight:bold;">&#40;</span>sFullPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Boolean</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Verifica si existe un archivo</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Debemos de Activar</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Microsoft Scripting Runtime en las Referencias de Visual Basic.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> oFile <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">New</span> Scripting.<span style="color: #66cc66;">FileSystemObject</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; FileExists = oFile.<span style="color: #66cc66;">FileExists</span><span style="color:#006600; font-weight:bold;">&#40;</span>sFullPath<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Regresa Falso o Verdadero</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">GoTo</span> TrataError</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Decalramos el Array din&amp;aacute;mico de tipo String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> Archivos<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> i <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, flag <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">With</span> CommonDialog1</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">CancelError</span> = <span style="color: #b1b100;">True</span> <span style="color: #808080;">' con esto se le dice al Visual Basic que si se pulsa en Cancelar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">MaxFileSize</span> = <span style="color: #cc66cc;color:#800000;">32760</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">FileName</span> = <span style="color: #ff0000;">""</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">DialogTitle</span> = <span style="color: #ff0000;">"Selecci&amp;oacute;n Multiple "</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">Flags</span> = cdlOFNAllowMultiselect <span style="color: #b1b100;">Or</span> cdlOFNExplorer</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">ShowOpen</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">With</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Guardamos en el array din&amp;aacute;mico los archivos con la funci&amp;oacute;n Split</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'indicandole como separador el Chr(0)</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Archivos = <span style="color: #b1b100;">Split</span><span style="color:#006600; font-weight:bold;">&#40;</span>CommonDialog1.<span style="color: #66cc66;">FileName</span>, <span style="color: #b1b100;">Chr</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Recorremos el Array e imprimimos el resultado en el formulario</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">For</span> i = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">To</span> <span style="color: #b1b100;">UBound</span><span style="color:#006600; font-weight:bold;">&#40;</span>Archivos<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> RutaArchivo</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> pos</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; RutaArchivo = Archivos<span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'Asignamos el nombre del archivo</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Do</span> <span style="color: #808080;">'Extraemos el Nombre de la ruta completa</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pos = <span style="color: #b1b100;">InStr</span><span style="color:#006600; font-weight:bold;">&#40;</span>RutaArchivo, <span style="color: #ff0000;">"\"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RutaArchivo = <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>RutaArchivo, pos + <span style="color: #cc66cc;color:#800000;">1</span>, <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>RutaArchivo<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Loop</span> Until pos = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080;">'Verificamos si no existe</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> <span style="color:#006600; font-weight:bold;">&#40;</span>FileExists<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"C:\Temp\"</span> &amp; RutaArchivo<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #b1b100;">True</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"Archivo "</span> &amp; <span style="color: #ff0000;">"C:\Temp\"</span> &amp; RutaArchivo &amp; <span style="color: #ff0000;">" ya existe"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CopyFile Archivos<span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #ff0000;">"C:\Temp\"</span> &amp; RutaArchivo, <span style="color: #b1b100;">True</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">DoEvents</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Next</span> i</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Eliminamos el array &quot;Archivos&quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Erase</span> Archivos</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">TrataError:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Number</span> = <span style="color: #cc66cc;color:#800000;">32755</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"El proceso se Cancelo"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Err</span>.<span style="color: #66cc66;">Clear</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="imageframe" style="width:220px;"><a href="http://ayuda.fotopex.com/wp-content/uploads/2008/01/seleccion-multiple-commond-dialog-vb.zip" title="seleccion-multiple-commond-dialog-vb.zip"><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/floppy.jpg" width="48" height="48" alt="floppy.jpg" /></a>
<div class="imagecaption">Clic para descargar el archivo</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/seleccion-multiple-de-archivos-vb6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir entre RGB, Hex y Color en Visual Basic</title>
		<link>http://ayuda.fotopex.com/programacion/vb/convertir-entre-rgb-hex-y-color-en-visual-basic/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/convertir-entre-rgb-hex-y-color-en-visual-basic/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 22:19:05 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/convertir-entre-rgb-hex-y-color-en-visual-basic/</guid>
		<description><![CDATA[Como primer paso necesitamos un formulario con, 5 cajas de texto y 4 botones de comando. Tambi&#233;n puedes encontrar un ejecutable al final del art&#237;culo. El art&#237;culo es muy simple, pues como siempre el primer paso es entender el procedimiento y ya despu&#233;s te encargaras de adaptarlo a tus necesidades. Bot&#243;n cmdhextorgb. Tomar&#225; el contenido [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/colores_vb.jpg" width="273" height="194" alt="colores_vb.jpg" class="imageframe imgalignleft" /></p>
<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 */ 
google_ad_slot = "1220677556";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div style="clear:both;"></div>
<p>Como primer paso necesitamos un formulario con, 5 cajas de texto y 4 botones de comando.<br />
Tambi&eacute;n puedes encontrar un ejecutable al final del art&iacute;culo.</p>
<p>El art&iacute;culo es muy simple, pues como siempre el primer paso es entender el procedimiento y ya despu&eacute;s te encargaras de adaptarlo a tus necesidades.</p>
<p><strong>Bot&oacute;n cmdhextorgb</strong>.</p>
<p>Tomar&aacute; el contenido de la caja de texto Text1 el cual debe ser de 7 caracteres <strong>#FFCC00</strong><br />
<span id="more-57"></span></p>
<div class="igBar"><span id="lvb-15"><a href="#" onclick="javascript:showPlainTxt('vb-15'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-15">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdhextorgb_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'#FFCC00</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; hexcolor = Text1.<span style="color: #66cc66;">Text</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> r, g, b <span style="color: #b1b100;">As</span> Byte</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; r = <span style="color: #b1b100;">CByte</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"&amp;H"</span> &amp; <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>hexcolor, <span style="color: #cc66cc;color:#800000;">2</span>, <span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; g = <span style="color: #b1b100;">CByte</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"&amp;H"</span> &amp; <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>hexcolor, <span style="color: #cc66cc;color:#800000;">4</span>, <span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; b = <span style="color: #b1b100;">CByte</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"&amp;H"</span> &amp; <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>hexcolor, <span style="color: #cc66cc;color:#800000;">6</span>, <span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">BackColor</span> = <span style="color: #b1b100;">RGB</span><span style="color:#006600; font-weight:bold;">&#40;</span>r, g, b<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">Text</span> = r &amp; <span style="color: #ff0000;">","</span> &amp; g &amp; <span style="color: #ff0000;">","</span> &amp; b</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Bot&oacute;n cmdrgbtohex</strong>.</p>
<p>Tomar&aacute; el contenido de la caja de texto Text2 el cual debe ser separado por comas  <strong>255,255,255</strong></p>
<div class="igBar"><span id="lvb-16"><a href="#" onclick="javascript:showPlainTxt('vb-16'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-16">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdrgbtohex_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">To</span> <span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> pos1, pos2</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; RGB_Color = Text2.<span style="color: #66cc66;">Text</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #808080;">'255,255,255</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; contador = <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Do</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pos1 = <span style="color: #b1b100;">InStr</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color, <span style="color: #ff0000;">","</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> pos1 = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num<span style="color:#006600; font-weight:bold;">&#40;</span>contador<span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num<span style="color:#006600; font-weight:bold;">&#40;</span>contador<span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color, <span style="color: #cc66cc;color:#800000;">1</span>, pos1 - <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; RGB_Color = <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color, pos1 + <span style="color: #cc66cc;color:#800000;">1</span>, <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contador = contador + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Loop</span> Until pos1 = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; r = <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; g = <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; b = <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">BackColor</span> = <span style="color: #b1b100;">RGB</span><span style="color:#006600; font-weight:bold;">&#40;</span>r, g, b<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'get the r value</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> r &lt;<span style="color: #cc66cc;color:#800000;">16</span> <span style="color: #b1b100;">Then</span> hex1 = <span style="color: #cc66cc;color:#800000;">0</span> &amp; <span style="color: #b1b100;">Hex</span><span style="color:#006600; font-weight:bold;">&#40;</span>r<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Else</span> hex1 = <span style="color: #b1b100;">Hex</span><span style="color:#006600; font-weight:bold;">&#40;</span>r<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'get the g value</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> r &lt;<span style="color: #cc66cc;color:#800000;">16</span> <span style="color: #b1b100;">Then</span> hex2 = <span style="color: #cc66cc;color:#800000;">0</span> &amp; <span style="color: #b1b100;">Hex</span><span style="color:#006600; font-weight:bold;">&#40;</span>g<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Else</span> hex2 = <span style="color: #b1b100;">Hex</span><span style="color:#006600; font-weight:bold;">&#40;</span>g<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'get the b value</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> b &lt;<span style="color: #cc66cc;color:#800000;">16</span> <span style="color: #b1b100;">Then</span> hex3 = <span style="color: #cc66cc;color:#800000;">0</span> &amp; <span style="color: #b1b100;">Hex</span><span style="color:#006600; font-weight:bold;">&#40;</span>b<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Else</span> hex3 = <span style="color: #b1b100;">Hex</span><span style="color:#006600; font-weight:bold;">&#40;</span>b<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">Text</span> = <span style="color: #ff0000;">"#"</span> &amp; hex1 &amp; hex2 &amp; hex3</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Bot&oacute;n cmdrgbtocolor</strong>.</p>
<p>Tomar&aacute; el contenido de la caja de texto Text3 el cual debe ser separado por comas  <strong>255,255,255</strong></p>
<div class="igBar"><span id="lvb-17"><a href="#" onclick="javascript:showPlainTxt('vb-17'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-17">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdrgbtocolor_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">To</span> <span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> pos1, pos2</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; RGB_Color = Text3.<span style="color: #66cc66;">Text</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'255,255,255</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; contador = <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Do</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pos1 = <span style="color: #b1b100;">InStr</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color, <span style="color: #ff0000;">","</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> pos1 = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num<span style="color:#006600; font-weight:bold;">&#40;</span>contador<span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num<span style="color:#006600; font-weight:bold;">&#40;</span>contador<span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color, <span style="color: #cc66cc;color:#800000;">1</span>, pos1 - <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; RGB_Color = <span style="color: #b1b100;">Mid</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color, pos1 + <span style="color: #cc66cc;color:#800000;">1</span>, <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>RGB_Color<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; contador = contador + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Loop</span> Until pos1 = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">BackColor</span> = <span style="color: #b1b100;">RGB</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; rgbtocolor = <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> * <span style="color: #cc66cc;color:#800000;">256</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>num<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> * <span style="color: #cc66cc;color:#800000;">65536</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">Text</span> = rgbtocolor</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Bot&oacute;n cmdcolortorgb</strong>.</p>
<p>Y finalmente de Color a RGB.</p>
<div class="igBar"><span id="lvb-18"><a href="#" onclick="javascript:showPlainTxt('vb-18'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-18">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdcolortorgb_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; mcolor = <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>Text4.<span style="color: #66cc66;">Text</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> r, g, b <span style="color: #b1b100;">As</span> Byte</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; r = mcolor <span style="color: #b1b100;">And</span> <span style="color: #cc66cc;color:#800000;">255</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; g = <span style="color:#006600; font-weight:bold;">&#40;</span>mcolor \ <span style="color: #cc66cc;color:#800000;">256</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">And</span> <span style="color: #cc66cc;color:#800000;">255</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; b = <span style="color:#006600; font-weight:bold;">&#40;</span>mcolor \ <span style="color: #cc66cc;color:#800000;">65536</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">And</span> <span style="color: #cc66cc;color:#800000;">255</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; colortorgb = r &amp; <span style="color: #ff0000;">","</span> &amp; g &amp; <span style="color: #ff0000;">","</span> &amp; b</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">BackColor</span> = <span style="color: #b1b100;">RGB</span><span style="color:#006600; font-weight:bold;">&#40;</span>r, g, b<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; txtResult.<span style="color: #66cc66;">Text</span> = colortorgb</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>&nbsp;</p>
<div class="imageframe" style="width:220px;"><a href="http://ayuda.fotopex.com/wp-content/uploads/2008/01/colores-vb.zip" title="colores-vb.zip"><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/floppy.jpg" width="48" height="48" alt="floppy.jpg" /></a>
<div class="imagecaption">Clic para descargar el archivo</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/convertir-entre-rgb-hex-y-color-en-visual-basic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copiar archivos incluyendo subdirectorios como xcopy /s</title>
		<link>http://ayuda.fotopex.com/programacion/vb/copiar-archivos-incluyendo-subdirectorios-como-xcopy-s/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/copiar-archivos-incluyendo-subdirectorios-como-xcopy-s/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 22:12:49 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/copiar-archivos-incluyendo-subdirectorios-como-xcopy-s/</guid>
		<description><![CDATA[Este ejemplo puede ser utilizado para crear un respaldo de archivos incluyendo los subdirectorios como xcopy /s Primero necesitamos un formulario con 3 cajas de texto, dos etiquetas, 3 botones de comando y un checkbox A una etiqueta le colocaremos el caption como Origen y su caja de texto la llamaremos txtOrigen La segunda etiqueta [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 */ 
google_ad_slot = "1220677556";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>Este ejemplo puede ser utilizado para crear un respaldo de archivos incluyendo los subdirectorios como xcopy /s</p>
<p>Primero necesitamos un formulario con 3 cajas de texto, dos etiquetas, 3 botones de comando y un checkbox</p>
<p>A una etiqueta le colocaremos el caption como <strong>Origen </strong>y su caja de texto la llamaremos <strong>txtOrigen</strong><br />
La segunda etiqueta ser&aacute; <strong>Destino </strong>y su caja de texto <strong>txtDestino</strong><br />
La tercera caja de texto ser&aacute; <strong>txtInfo</strong><br />
Al primer bot&oacute;n de comando le llamaremos <strong>cmdOrigen </strong>y su caption <strong>Seleccionar</strong><br />
Al segundo bot&oacute;n de comando le llamaremos <strong>cmdDestino </strong>y su caption <strong>Seleccionar</strong><br />
Al tercer bot&oacute;n de comando le llamaremos <strong>cmdCopiar </strong>y su caption <strong>Copiar </strong></p>
<p>As&iacute; es como se debe ver el formulario</p>
<p><img src='http://www.empresario.com.mx/wp-content/uploads/2007/05/xcopy_vb6.jpg' alt='xcopy_vb6.jpg' /></p>
<p><strong>Ahora las funciones</strong></p>
<p>Damos doble clic sobre el formulario y creamos la funci&oacute;n <strong>CopyFiles</strong>, que ser&aacute; para lo mismo.<br />
<span id="more-55"></span></p>
<div class="igBar"><span id="lvb-25"><a href="#" onclick="javascript:showPlainTxt('vb-25'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-25">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Option</span> <span style="color: #b1b100;">Explicit</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Form_Load<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Function</span> CopyFiles<span style="color:#006600; font-weight:bold;">&#40;</span>srcPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, dstPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span>, IncludeSubDirs <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span>, FilePat <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">' Esta rutina copia todos los archivos de un directorio</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">' incluyendo los subdirectorios, Como XCOPY /S</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Const</span> ATTR_DIRECTORY = <span style="color: #cc66cc;color:#800000;">16</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> DirOK <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span>, i <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> DirReturn <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">ReDim</span> d<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> dCount <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> CurrFile$</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> CurrDir$</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> dstPathBackup <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> f%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">GoTo</span> DirErr</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;CurrDir$ = <span style="color: #b1b100;">CurDir</span>$ <span style="color: #808080;">' directorio actual de trabajo</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;srcPath = <span style="color: #b1b100;">UCase</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>srcPath<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;dstPath = <span style="color: #b1b100;">UCase</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>dstPath<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;dstPathBackup = dstPath <span style="color: #808080;">' guardamos el directorio destino</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080;">' Iniciamos variables para mantener los nombres de archivos</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;DirReturn = <span style="color: #b1b100;">Dir</span><span style="color:#006600; font-weight:bold;">&#40;</span>srcPath &amp; <span style="color: #ff0000;">"*.*"</span>, ATTR_DIRECTORY<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080;">' Buscamos todos los Subdiectorios</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Do</span> <span style="color: #b1b100;">While</span> DirReturn &lt;&gt; <span style="color: #ff0000;">""</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #808080;">' aseguramos que no se haga nada con &quot;.&quot; y &quot;..&quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> DirReturn &lt;&gt; <span style="color: #ff0000;">"."</span> <span style="color: #b1b100;">And</span> DirReturn &lt;&gt; <span style="color: #ff0000;">".."</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">If</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">GetAttr</span><span style="color:#006600; font-weight:bold;">&#40;</span>srcPath &amp; DirReturn<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">And</span> ATTR_DIRECTORY<span style="color:#006600; font-weight:bold;">&#41;</span> = ATTR_DIRECTORY <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080;">' agregamos a la lista de directorios</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dCount = dCount + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d<span style="color:#006600; font-weight:bold;">&#40;</span>dCount<span style="color:#006600; font-weight:bold;">&#41;</span> = srcPath &amp; DirReturn</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; DirReturn = <span style="color: #b1b100;">Dir</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Loop</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080;">' ahora hacemos que los archivos que coicidan</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;DirReturn = <span style="color: #b1b100;">Dir</span><span style="color:#006600; font-weight:bold;">&#40;</span>srcPath &amp; FilePat, <span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080;">' Buscamos todos los archivos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Do</span> <span style="color: #b1b100;">While</span> DirReturn &lt;&gt; <span style="color: #ff0000;">""</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #808080;">' aseguramos que no es directorio</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Not</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">GetAttr</span><span style="color:#006600; font-weight:bold;">&#40;</span>srcPath &amp; DirReturn<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">And</span> ATTR_DIRECTORY<span style="color:#006600; font-weight:bold;">&#41;</span> = ATTR_DIRECTORY<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #808080;">' es un archivo y se copia</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;frmMain!txtInfo.<span style="color: #66cc66;">Text</span> = txtInfo.<span style="color: #66cc66;">Text</span> &amp; <span style="color: #b1b100;">vbCrLf</span> &amp; <span style="color: #ff0000;">"Copiando "</span> &amp; srcPath &amp; DirReturn &amp; <span style="color: #ff0000;">" a "</span> &amp; dstPath &amp; DirReturn</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;frmMain!txtInfo.<span style="color: #66cc66;">Refresh</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #808080;">'Si existe preguntamos si se sobre-escribe</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f% = <span style="color: #b1b100;">FreeFile</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">Open</span> dstPath &amp; DirReturn <span style="color: #b1b100;">For</span> <span style="color: #b1b100;">Input</span> <span style="color: #b1b100;">As</span> #f%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">Close</span> #f%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Err</span> = <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f% = <span style="color: #b1b100;">MsgBox</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"El archivo "</span> &amp; dstPath &amp; DirReturn &amp; <span style="color: #ff0000;">" ya existe. Desea sobre-escribirlo ?"</span>, <span style="color: #cc66cc;color:#800000;">4</span> + <span style="color: #cc66cc;color:#800000;">32</span> + <span style="color: #cc66cc;color:#800000;">256</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> f% = <span style="color: #cc66cc;color:#800000;">6</span> <span style="color: #b1b100;">Then</span> <span style="color: #b1b100;">FileCopy</span> srcPath &amp; DirReturn, dstPath &amp; DirReturn</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">FileCopy</span> srcPath &amp; DirReturn, dstPath &amp; DirReturn</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; DirReturn = <span style="color: #b1b100;">Dir</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Loop</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #808080;">' Ahora hacemos los subdirectorios</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">For</span> i = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #b1b100;">To</span> dCount</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> IncludeSubDirs <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">GoTo</span> PathErr</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dstPath = dstPath &amp; <span style="color: #b1b100;">Right</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>d<span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>d<span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> - <span style="color: #b1b100;">Len</span><span style="color:#006600; font-weight:bold;">&#40;</span>srcPath<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #808080;">' si el path no existe lo creamos</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">ChDir</span> dstPath</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">On</span> <span style="color: #b1b100;">Error</span> <span style="color: #b1b100;">GoTo</span> DirErr</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CopyFiles = <span style="color: #b1b100;">True</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">GoTo</span> ExitFunc</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; DirOK = CopyFiles<span style="color:#006600; font-weight:bold;">&#40;</span>d<span style="color:#006600; font-weight:bold;">&#40;</span>i<span style="color:#006600; font-weight:bold;">&#41;</span>, dstPath, IncludeSubDirs, FilePat<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #808080;">' Reiniciamos dstPath al valor asignado</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; dstPath = dstPathBackup</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Next</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;CopyFiles = <span style="color: #b1b100;">True</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ExitFunc:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">ChDir</span> CurrDir$</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">DirErr:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;frmMain!txtInfo = <span style="color: #ff0000;">"Error: "</span> &amp; <span style="color: #b1b100;">Error</span>$<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">Err</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;CopyFiles = <span style="color: #b1b100;">False</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">Resume</span> ExitFunc</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">PathErr:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Err</span> = <span style="color: #cc66cc;color:#800000;">75</span> <span style="color: #b1b100;">Or</span> <span style="color: #b1b100;">Err</span> = <span style="color: #cc66cc;color:#800000;">76</span> <span style="color: #b1b100;">Then</span> <span style="color: #808080;">' si no encontramos el path</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; frmMain!txtInfo.<span style="color: #66cc66;">Text</span> = txtInfo.<span style="color: #66cc66;">Text</span> &amp; <span style="color: #b1b100;">vbCrLf</span> &amp; <span style="color: #ff0000;">"Making directory "</span> &amp; dstPath</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; frmMain!txtInfo.<span style="color: #66cc66;">Refresh</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">MkDir</span> dstPath</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Resume</span> <span style="color: #b1b100;">Next</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #b1b100;">GoTo</span> DirErr</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La funci&oacute;n para seleccionar los folders origen y destino.</p>
<div class="igBar"><span id="lvb-26"><a href="#" onclick="javascript:showPlainTxt('vb-26'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-26">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Function</span> seleccionaFolder<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> bi <span style="color: #b1b100;">As</span> BROWSEINFO <span style="color: #808080;">'declaramos algunas variables que necesitamos</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> rtn&amp;, pidl&amp; <span style="color: #808080;">'es lo mismo si se declara Dim rtn As Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> path$, path1$ <span style="color: #808080;">' es lo mismo si se declara Dim path As String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> pos% <span style="color: #808080;">' es lo mismo si se declara Dim&nbsp; pos As Integer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> var1%, SpecIn$</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; bi.<span style="color: #66cc66;">hOwner</span> = <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">hWnd</span> <span style="color: #808080;">'Centramos la caja de dialogo en la pantalla</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; bi.<span style="color: #66cc66;">lpszTitle</span> = <span style="color: #ff0000;">"Seleccione Una Carpeta..."</span> <span style="color: #808080;">'Colocamos el Titulo</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; bi.<span style="color: #66cc66;">ulFlags</span> = BIF_RETURNONLYFSDIRS <span style="color: #808080;">'El tipo de folder(s) a regresar</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; pidl&amp; = SHBrowseForFolder<span style="color:#006600; font-weight:bold;">&#40;</span>bi<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'mostramos la caja de dialogo</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; path = <span style="color: #b1b100;">Space</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">512</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'colocamos el maximo de characters</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; var1 = SHGetPathFromIDList<span style="color:#006600; font-weight:bold;">&#40;</span>ByVal pidl&amp;, ByVal path<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'Obtenemos el path seleccionado</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> var1&gt; <span style="color: #cc66cc;color:#800000;">0</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; pos% = <span style="color: #b1b100;">InStr</span><span style="color:#006600; font-weight:bold;">&#40;</span>path$, <span style="color: #b1b100;">Chr</span>$<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'extraemos el path de la cadena</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; path$ = <span style="color: #b1b100;">Left</span><span style="color:#006600; font-weight:bold;">&#40;</span>path$, pos - <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'guardamos el path extraido</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080;">'aseguramos que el path termine con &quot;\&quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Right</span>$<span style="color:#006600; font-weight:bold;">&#40;</span>path$, <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span> &lt;&gt; <span style="color: #ff0000;">"\"</span> <span style="color: #b1b100;">Then</span> path$ = path$ &amp; <span style="color: #ff0000;">"\"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; seleccionaFolder = path$&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080;">' colocamos el resultado</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora los eventos.</p>
<p>Primero el bot&oacute;n de comando Destino.</p>
<div class="igBar"><span id="lvb-27"><a href="#" onclick="javascript:showPlainTxt('vb-27'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-27">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdDestino_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">txtDestino</span>.<span style="color: #66cc66;">Text</span> = seleccionaFolder</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora el bot&oacute;n de comando Origen.</p>
<div class="igBar"><span id="lvb-28"><a href="#" onclick="javascript:showPlainTxt('vb-28'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-28">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdOrigen_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">txtOrigen</span>.<span style="color: #66cc66;">Text</span> = seleccionaFolder</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El bot&oacute;n de comando Copiar.</p>
<div class="igBar"><span id="lvb-29"><a href="#" onclick="javascript:showPlainTxt('vb-29'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-29">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> cmdCopiar_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">txtDestino</span>.<span style="color: #66cc66;">Text</span> &lt;&gt; <span style="color: #ff0000;">""</span> <span style="color: #b1b100;">And</span> <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">txtOrigen</span> &lt;&gt; <span style="color: #ff0000;">""</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Call</span> CopyFiles<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">txtOrigen</span>.<span style="color: #66cc66;">Text</span>, <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">txtDestino</span>.<span style="color: #66cc66;">Text</span>, chkIncuirSubFolders.<span style="color: #66cc66;">Value</span>, <span style="color: #ff0000;">"*.*"</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">' puedes especificar un tipo de archivo</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"Datos Incompletos"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y finalmente creamos un modulo, dando un clic en el men&uacute; <strong>Project </strong>y clic en el item <strong>agregar modulo </strong>(add module), clic en abrir (open).<br />
 Y pegamos el siguiente c&oacute;digo:</p>
<div class="igBar"><span id="lvb-30"><a href="#" onclick="javascript:showPlainTxt('vb-30'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-30">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">' modulo para mostrar caja de dialogo y seleccionar un folder</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SHGetPathFromIDList Lib <span style="color: #ff0000;">"shell32.dll"</span> Alias <span style="color: #ff0000;">"SHGetPathFromIDListA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal pidl <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal pszPath <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SHGetSpecialFolderLocation Lib <span style="color: #ff0000;">"shell32.dll"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>ByVal hwndOwner <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, ByVal nFolder <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span>, pidl <span style="color: #b1b100;">As</span> ITEMIDLIST<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> SHBrowseForFolder Lib <span style="color: #ff0000;">"shell32.dll"</span> Alias <span style="color: #ff0000;">"SHBrowseForFolderA"</span> <span style="color:#006600; font-weight:bold;">&#40;</span>lpBrowseInfo <span style="color: #b1b100;">As</span> BROWSEINFO<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Type</span> SHITEMID</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;cb <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;abID <span style="color: #b1b100;">As</span> Byte</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Type</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Type</span> ITEMIDLIST</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;mkid <span style="color: #b1b100;">As</span> SHITEMID</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Type</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Type</span> BROWSEINFO</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;hOwner <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;pidlRoot <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;pszDisplayName <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;lpszTitle <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;ulFlags <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;lpfn <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;lParam <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;iImage <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Type</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> NOERROR = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> BIF_RETURNONLYFSDIRS = &amp;H1</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> BIF_DONTGOBELOWDOMAIN = &amp;H2</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> BIF_STATUSTEXT = &amp;H4</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> BIF_RETURNFSANCESTORS = &amp;H8</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> BIF_BROWSEFORCOMPUTER = &amp;H1000</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Const</span> BIF_BROWSEFORPRINTER = &amp;H2000 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>&nbsp;</p>
<div class="imageframe" style="width:220px;"><a href="http://ayuda.fotopex.com/wp-content/uploads/2008/01/xcopy.zip" title="xcopy.zip"><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/floppy.jpg" width="48" height="48" alt="floppy.jpg" /></a>
<div class="imagecaption">Clic para descargar el archivo</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/copiar-archivos-incluyendo-subdirectorios-como-xcopy-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exportar Recordset MS Access a MS Excel</title>
		<link>http://ayuda.fotopex.com/programacion/vb/exportar-recordset-ms-access-a-ms-excel/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/exportar-recordset-ms-access-a-ms-excel/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 22:08:05 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/exportar-recordset-ms-access-a-ms-excel/</guid>
		<description><![CDATA[Para hacer la exportaci&#243;n de los datos de una tabla por medio de un Recordset primero abrimos visual basic y creamos un nuevo proyecto, necesitamos agregar las referencias Microsoft Excel 9.0 Object Library y Microsoft Activex Data objects 2.0 Library. Ahora agregamos un boton de comando y declaramos las variables que utilizaremos. Texto Plano Visual [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: left; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 */ 
google_ad_slot = "1220677556";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>Para hacer la exportaci&oacute;n de los datos de una tabla por medio de un <strong>Recordset</strong> primero abrimos visual basic y creamos un nuevo proyecto, necesitamos agregar las referencias <strong>Microsoft Excel 9.0 Object Library</strong> y <strong>Microsoft Activex Data objects 2.0 Library</strong>.</p>
<div style="clear:both;"></div>
<p>Ahora agregamos un boton de comando y declaramos las variables que utilizaremos.</p>
<div class="igBar"><span id="lvb-36"><a href="#" onclick="javascript:showPlainTxt('vb-36'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-36">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Recuerda que debes a&amp;ntilde;adir las referencias</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Microsoft Excel 9.0 Object Library</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'Microsoft Activez Data objects 2.0 Library</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Option</span> <span style="color: #b1b100;">Explicit</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> H <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> V <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> objExcel <span style="color: #b1b100;">As</span> Excel.<span style="color: #66cc66;">Application</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> Rs <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Recordset</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> db <span style="color: #b1b100;">As</span> Connection </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La funci&oacute;n para conectar a la base de datos.<br />
<span id="more-53"></span></p>
<div class="igBar"><span id="lvb-37"><a href="#" onclick="javascript:showPlainTxt('vb-37'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-37">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Sub</span> conectaDB<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Set</span> db = <span style="color: #b1b100;">New</span> Connection</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; db.<span style="color: #66cc66;">CursorLocation</span> = adUseClient</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; db.<span style="color: #b1b100;">Open</span> <span style="color: #ff0000;">"PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=db1.mdb;"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #b1b100;">Set</span> Rs = <span style="color: #b1b100;">New</span> <span style="color: #b1b100;">Recordset</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; Rs.<span style="color: #b1b100;">Open</span> <span style="color: #ff0000;">"select apellidos,direccion,dni,nombre,pais,poblacion,provincia,telefono from clientes"</span>, db, adOpenStatic, adLockOptimistic</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El evento al bot&oacute;n.</p>
<div class="igBar"><span id="lvb-38"><a href="#" onclick="javascript:showPlainTxt('vb-38'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-38">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">Call</span> conectaDB</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'guardamos en un array los nombres del encabezado de cada columna</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Dim</span> Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">8</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Nombre"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Apellidos"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Direccion"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Poblacion"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">4</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Provincia"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">5</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Pais"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">6</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"Telefono"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">7</span><span style="color:#006600; font-weight:bold;">&#41;</span> = <span style="color: #ff0000;">"DNI"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Call</span> Inicio_Excel <span style="color: #808080;">'Llamamos a la funcion que abre el workbook en excel</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Call</span> Formato_Excel<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">8</span>, Heading<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #808080;">'llamamos a la funcion que da el formato al encabezado</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">V = <span style="color: #cc66cc;color:#800000;">5</span> <span style="color: #808080;">' fila donde comenzara a insertar los datos</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">H = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #808080;">' columna donde comenzara a insertar los datos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">Do</span> <span style="color: #b1b100;">While</span> <span style="color: #b1b100;">Not</span> Rs.<span style="color: #b1b100;">EOF</span> <span style="color: #808080;">'esto nos sirve pa leer los datos desde</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080;">'la tabla de access para despues colocarlos en las celdas correspondientes</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">With</span> Rs</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H<span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!nombre</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!apellidos</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!direccion</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!poblacion</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">4</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!provincia</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">5</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!pais</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">6</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!telefono</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objExcel.<span style="color: #66cc66;">ActiveSheet</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span>V, H + <span style="color: #cc66cc;color:#800000;">7</span><span style="color:#006600; font-weight:bold;">&#41;</span> = .<span style="color: #66cc66;">Fields</span>!dni</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; V = V + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">MoveNext</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">With</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Loop</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #b1b100;">Set</span> objExcel = <span style="color: #b1b100;">Nothing</span> <span style="color: #808080;">'una vez hemos terminado descargamos el objeto</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La funci&oacute;n para iniciar MS Excel.</p>
<div class="igBar"><span id="lvb-39"><a href="#" onclick="javascript:showPlainTxt('vb-39'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-39">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Function</span> Inicio_Excel<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Boolean</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Set</span> objExcel = <span style="color: #b1b100;">New</span> Excel.<span style="color: #66cc66;">Application</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">objExcel.<span style="color: #66cc66;">Visible</span> = <span style="color: #b1b100;">True</span> <span style="color: #808080;">'lo hacemos visible</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">objExcel.<span style="color: #66cc66;">SheetsInNewWorkbook</span> = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #808080;">'decimos cuantas hojas queremos en el nuevo documento</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">objExcel.<span style="color: #66cc66;">Workbooks</span>.<span style="color: #66cc66;">Add</span> <span style="color: #808080;">' a&amp;ntilde;adimos el objeto al workbook</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>La funci&oacute;n para los encabezados en MS Excel.</p>
<div class="igBar"><span id="lvb-40"><a href="#" onclick="javascript:showPlainTxt('vb-40'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-40">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Public</span> <span style="color: #b1b100;">Function</span> Formato_Excel<span style="color:#006600; font-weight:bold;">&#40;</span>Num_Campos <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span>, Nombre_Campos<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">String</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Boolean</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> I <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">With</span> objExcel.<span style="color: #66cc66;">ActiveSheet</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Formato de las celdas de los encabezados</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Range</span><span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span>, <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>, .<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span>, Num_Campos<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">Borders</span>.<span style="color: #66cc66;">LineStyle</span> = xlContinuous</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Range</span><span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span>, <span style="color: #cc66cc;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>, .<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span>, <span style="color: #cc66cc;color:#800000;">8</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">Font</span>.<span style="color: #66cc66;">Bold</span> = <span style="color: #b1b100;">True</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Ingresamos el texto a las celdas</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">For</span> I = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #b1b100;">To</span> Num_Campos - <span style="color: #cc66cc;color:#800000;">1</span> Step <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; .<span style="color: #66cc66;">Cells</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #cc66cc;color:#800000;">3</span>, I<span style="color:#006600; font-weight:bold;">&#41;</span> = Nombre_Campos<span style="color:#006600; font-weight:bold;">&#40;</span>I<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Next</span> I</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">' asignamos el ancho de las celdas</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"A"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">25</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"B"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">35</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"C"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">30</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"D"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">20</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"E"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">15</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"F"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">15</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"G"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">10</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .<span style="color: #66cc66;">Columns</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">"H"</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color: #66cc66;">ColumnWidth</span> = <span style="color: #cc66cc;color:#800000;">10</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">With</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Espero que te sirva este ejemplo y aqui puedes descargarte los archivos del c&oacute;digo.</p>
<div class="imageframe" style="width:220px;"><a href="http://ayuda.fotopex.com/wp-content/uploads/2008/01/exportar_a_excel_vb6.zip" title="exportar_a_excel_vb6.zip"><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/floppy.jpg" width="48" height="48" alt="floppy.jpg" /></a>
<div class="imagecaption">Clic para descargar el archivo</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/exportar-recordset-ms-access-a-ms-excel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Como Registrar Componentes via API Windows</title>
		<link>http://ayuda.fotopex.com/programacion/vb/como-registrar-componentes-via-api-windows/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/como-registrar-componentes-via-api-windows/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 22:31:47 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/como-registrar-componentes-via-api-windows/</guid>
		<description><![CDATA[Un recurso que encontré en la red hace mucho tiempo de como se pueden registrar componentes ActiveX, ya sean OCX o DLL (no DLL Win32). El método en cuestión muestra el uso de las funciones DllRegisterServer() y DllUnregisterServer(). Estas funciones tienen la peculiaridad a la hora de ser declaradas de que no apuntan a una [...]]]></description>
			<content:encoded><![CDATA[<p>Un recurso que encontré en la red hace mucho tiempo de como se pueden registrar componentes ActiveX, ya sean OCX o DLL (no DLL Win32).</p>
<p>El método en cuestión muestra el uso de las funciones <strong>DllRegisterServer()</strong> y <strong>DllUnregisterServer()</strong>. Estas funciones tienen la peculiaridad a la hora de ser declaradas de que no apuntan a una librería concreta como origen de la función si no hacia el componente que queremos registrar.</p>
<p>Este ejemplo muestra como registrar o eliminar del registro el componente "ComCtl32.OCX":</p>
<div class="igBar"><span id="lvb-42"><a href="#" onclick="javascript:showPlainTxt('vb-42'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-42">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'KPD-Team 1999</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'URL: http://www.allapi.net/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'E-Mail: KPDTeam@Allapi.net</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> DllRegisterServer Lib <span style="color: #ff0000;">"ComCtl32.OCX"</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Declare</span> <span style="color: #b1b100;">Function</span> DllUnregisterServer Lib <span style="color: #ff0000;">"ComCtl32.OCX"</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Long</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Const</span> ERROR_SUCCESS = &amp;H0</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">' Para instalar el componente del sistema utilizar esta función:</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> DllRegisterServer = ERROR_SUCCESS <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"El componente ha sido instalado satisfactoriamente."</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"Error al registrar el componente."</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">' Para desinstalar el componente del sistema utilizar esta función:</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">If</span> DllUnregisterServer = ERROR_SUCCESS <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"El componente ha sido desinstalado satisfactoriamente."</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Else</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"El componente no ha podido ser eliminado del registro."</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/como-registrar-componentes-via-api-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>¿Cómo crear una Funcion en VB?</title>
		<link>http://ayuda.fotopex.com/programacion/vb/%c2%bfcomo-crear-una-funcion-en-vb/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/%c2%bfcomo-crear-una-funcion-en-vb/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 16:56:38 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/%c2%bfcomo-crear-una-funcion-en-vb/</guid>
		<description><![CDATA[How to Create a Function in VB? Una Función es más o menos lo mismo que un Sub (un segmento de código que usted crea), y que puede ser usado siempre que lo desee. La diferencia es que una función devuelve un valor, mientras que un Sub no. Cuan necesitas llamar a la funcion lo [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/function-vb.JPG" width="313" height="248" alt="Cómo crear una Funcion en VB - How to Create a Function in VB" class="imageframe imgalignleft" />How to Create a Function in VB?<br />
Una <strong>Función</strong> es más o menos lo mismo que un <strong>Sub</strong> (un segmento de código que usted crea), y que puede ser usado siempre que lo desee. La diferencia es que una función devuelve un valor, mientras que un <strong>Sub</strong> no. Cuan necesitas llamar a la funcion lo haces de la siguiente forma:</p>
<div style="clear:both;"></div>
<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 */ 
google_ad_slot = "1220677556";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p><strong>Call Funcion(variable1, variable2)</strong></p>
<p>Ó también puede hacerlo como en el siguiente ejemplo:</p>
<div style="clear:both;"></div>
<div class="igBar"><span id="lvb-44"><a href="#" onclick="javascript:showPlainTxt('vb-44'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-44">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">Text3</span>.<span style="color: #66cc66;">Text</span> = suma<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">Text1</span>.<span style="color: #66cc66;">Text</span>, <span style="color: #b1b100;">Me</span>.<span style="color: #66cc66;">Text2</span>.<span style="color: #66cc66;">Text</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Function</span> suma<span style="color:#006600; font-weight:bold;">&#40;</span>val1, val2<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">If</span> <span style="color: #b1b100;">IsNull</span><span style="color:#006600; font-weight:bold;">&#40;</span>val1<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Or</span> <span style="color: #b1b100;">IsNull</span><span style="color:#006600; font-weight:bold;">&#40;</span>val2<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color: #b1b100;">Then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">MsgBox</span> <span style="color: #ff0000;">"Datos incompletos"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">Exit</span> <span style="color: #b1b100;">Function</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">End</span> <span style="color: #b1b100;">If</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; suma = <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>val1<span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color: #b1b100;">Val</span><span style="color:#006600; font-weight:bold;">&#40;</span>val2<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Function</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/%c2%bfcomo-crear-una-funcion-en-vb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gráfica 3d pie sin OCX en vb</title>
		<link>http://ayuda.fotopex.com/programacion/vb/grafica-3d-pie-sin-ocx-en-vb/</link>
		<comments>http://ayuda.fotopex.com/programacion/vb/grafica-3d-pie-sin-ocx-en-vb/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 17:31:30 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[VB]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/programacion/vb/grafica-3d-pie-sin-ocx-en-vb/</guid>
		<description><![CDATA[Bastante austero pero es un buen comienzo. Solo necesitamos un commandButton y un PictureBox. Texto Plano Visual Basic: Private Sub Command1_Click&#40;&#41; Dim PI, circStart, circEnd, gPercent, jPercent, nX, nY, rad nX = Picture1.ScaleWidth \ 2 nY = Picture1.ScaleHeight \ 2 &#160; rad = 1000 gPercent = 75 jPercent = 25 &#160; PI = 22 / [...]]]></description>
			<content:encoded><![CDATA[<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 */ 
google_ad_slot = "1220677556";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2008/01/3d-pie.JPG" width="244" height="226" alt="3d-pie.JPG" class="imageframe" /></p>
<div style="clear:both;"></div>
<p>Bastante austero pero es un buen comienzo.</p>
<p>Solo necesitamos un <strong>commandButton</strong> y un <strong>PictureBox</strong>.</p>
<div class="igBar"><span id="lvb-46"><a href="#" onclick="javascript:showPlainTxt('vb-46'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Visual Basic:</span>
<div id="vb-46">
<div class="vb">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Private</span> <span style="color: #b1b100;">Sub</span> Command1_Click<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Dim</span> PI, circStart, circEnd, gPercent, jPercent, nX, nY, rad</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">nX = Picture1.<span style="color: #66cc66;">ScaleWidth</span> \ <span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">nY = Picture1.<span style="color: #66cc66;">ScaleHeight</span> \ <span style="color: #cc66cc;color:#800000;">2</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">rad = <span style="color: #cc66cc;color:#800000;">1000</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gPercent = <span style="color: #cc66cc;color:#800000;">75</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">jPercent = <span style="color: #cc66cc;color:#800000;">25</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">PI = <span style="color: #cc66cc;color:#800000;">22</span> / <span style="color: #cc66cc;color:#800000;">7</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">circStart = <span style="color:#006600; font-weight:bold;">&#40;</span>gPercent * PI<span style="color:#006600; font-weight:bold;">&#41;</span> / <span style="color: #cc66cc;color:#800000;">180</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">circEnd = <span style="color:#006600; font-weight:bold;">&#40;</span>jPercent * PI<span style="color:#006600; font-weight:bold;">&#41;</span> / <span style="color: #cc66cc;color:#800000;">180</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Picture1.<span style="color: #66cc66;">DrawWidth</span> = <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Picture1.<span style="color: #66cc66;">FillStyle</span> = <span style="color: #cc66cc;color:#800000;">0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Picture1.<span style="color: #66cc66;">FillColor</span> = <span style="color: #b1b100;">vbBlue</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080;">'The For - Next is not nested for clarity</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">For</span> i = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #b1b100;">To</span> <span style="color: #cc66cc;color:#800000;">200</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Picture1.<span style="color: #66cc66;">Circle</span> <span style="color:#006600; font-weight:bold;">&#40;</span>nX, nY<span style="color:#006600; font-weight:bold;">&#41;</span>, rad, <span style="color: #b1b100;">vbRed</span>, -circStart, -circEnd, -<span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; nX = nX + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; nY = nY + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Next</span> i</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Picture1.<span style="color: #66cc66;">FillColor</span> = <span style="color: #b1b100;">vbRed</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">For</span> j = <span style="color: #cc66cc;color:#800000;">1</span> <span style="color: #b1b100;">To</span> <span style="color: #cc66cc;color:#800000;">200</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080;">'Adjusting the nX and nY moves the wedge</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Picture1.<span style="color: #66cc66;">Circle</span> <span style="color:#006600; font-weight:bold;">&#40;</span>nX + <span style="color: #cc66cc;color:#800000;">200</span>, nY - <span style="color: #cc66cc;color:#800000;">500</span><span style="color:#006600; font-weight:bold;">&#41;</span>, rad, <span style="color: #b1b100;">vbBlue</span>, -circEnd, -circStart, -<span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; nX = nX + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; nY = nY + <span style="color: #cc66cc;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">Next</span> j</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/vb/grafica-3d-pie-sin-ocx-en-vb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
