<?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</title>
	<atom:link href="http://ayuda.fotopex.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ayuda.fotopex.com</link>
	<description>En forma fácil</description>
	<lastBuildDate>Fri, 19 Mar 2010 16:07:00 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creando Punto de Restauración en Windows 7</title>
		<link>http://ayuda.fotopex.com/so/creando-punto-de-restauracion-en-windows-7/</link>
		<comments>http://ayuda.fotopex.com/so/creando-punto-de-restauracion-en-windows-7/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 16:03:41 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[SO]]></category>
		<category><![CDATA[Protección del Sistema]]></category>
		<category><![CDATA[Punto de Restauración]]></category>
		<category><![CDATA[Seven]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=751</guid>
		<description><![CDATA[
 




Se recomienda crear un Punto de Restauración antes de la instalación de programas o de realizar un gran cambio en el sistema operativo.
Para poder crear un punto de restauración en el sistema operativo de Windows 7 (Windows Seven) vamos a:

Click en el Botón Inicio y después click derecho sobre el elemento Equipo y seleccionamos [...]]]></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 7 k 1 */ 
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>Se recomienda crear un Punto de Restauración antes de la instalación de programas o de realizar un gran cambio en el sistema operativo.</p>
<p>Para poder crear un punto de restauración en el sistema operativo de Windows 7 (<strong>Windows Seven</strong>) vamos a:</p>
<div style="clear:both;"></div>
<p>Click en el <strong>Botón Inicio</strong> y después <span id="more-751"></span><strong>click derecho</strong> sobre el elemento <strong>Equipo</strong> y seleccionamos <strong>Propiedades</strong>.<br />
<img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/propiedades-pc-.png" alt="" title="propiedades-pc-" width="425" height="381" class="aligncenter size-full wp-image-752" /></p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/proteccion-del-sistema.png" alt="" title="proteccion-del-sistema" width="361" height="277" class="alignleft size-full wp-image-753" /> Ahora damos click en el enlace <strong>Protección del Sistema</strong> situado a la izquierda de la carpeta.</p>
<div style="clear:both;"></div>
<p>En la pestaña <strong>Protección de Sistema</strong> debemos de darle click en el botón que dice <strong>Crear</strong>.</p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/propiedades-sistema.png" alt="" title="propiedades-sistema" width="426" height="492" class="aligncenter size-full wp-image-754" /></p>
<p>En la ventana que aparecerá debemos escribir una <strong>descripción que nos ayude a recordar el punto de restauración</strong> que estamos creado. Y damos click en <strong>Crear</strong>.</p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/guardar-punto-restauracion.png" alt="" title="guardar-punto-restauracion" width="421" height="217" class="aligncenter size-full wp-image-755" /></p>
<p>El proceso tardara dependiendo de la cantidad de datos que tengamos y la velocidad de nuestro equipo. Una vez creado nuestro punto de restauración podemos instalar y modificar nuestro sistema.</p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/guardando-punto-restauracion.png" alt="" title="guardando-punto-restauracion" width="295" height="93" class="aligncenter size-full wp-image-756" /></p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/punto-restauracion-guardado.png" alt="" title="punto-restauracion-guardado" width="366" height="131" class="aligncenter size-full wp-image-757" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/so/creando-punto-de-restauracion-en-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solución error SQL_BIG_SELECTS</title>
		<link>http://ayuda.fotopex.com/programacion/bases-de-datos/solucion-error-sql_big_selects/</link>
		<comments>http://ayuda.fotopex.com/programacion/bases-de-datos/solucion-error-sql_big_selects/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 21:03:50 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[Bases de Datos]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SQL_BIG_SELECTS]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=749</guid>
		<description><![CDATA[El problema viene porque estas cargando una consulta que MySqL considera que puede ser grande ó se hacen bastantes relaciones entre las tablas.
The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
Ese error es debido a la variable de MySQL SQL_BIG_SELECTS, y [...]]]></description>
			<content:encoded><![CDATA[<p>El problema viene porque estas cargando una consulta que MySqL considera que puede ser grande ó se hacen bastantes relaciones entre las tablas.</p>
<blockquote><p>The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay</p></blockquote>
<p>Ese error es debido a la variable de MySQL SQL_BIG_SELECTS, y en el mensaje mismo te indica la respuesta:</p>
<blockquote><p><strong>SELECT</strong> examinará más de <strong>MAX_JOIN_SIZE</strong> filas, revisa tu <strong>WHERE</strong> y usa <strong><em>SET SQL_BIG_SELECTS = 1</em></strong> o <strong>SET SQL_MAX_JOIN_SIZE = #</strong> si el SELECT está bien.
</p></blockquote>
<p><span id="more-749"></span></p>
<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>Así que antes de correr tu consulta debes indicar al MySQL que permita el uso de consultas extendidas, para eso hay que ejecutar el siguiente query con la variable <strong>SQL_BIG_SELECTS</strong>:</p>
<blockquote><p>mysql_query("set sql_big_selects=1");</p></blockquote>
<div style="clear:both;"></div>
<p>Ejemplo:</p>
<div class="igBar"><span id="lphp-2"><a href="#" onclick="javascript:showPlainTxt('php-2'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-2">
<div class="php">
<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;"><a href="http://www.php.net/mysql_query" target="_blank"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'SQL_BIG_SELECTS=1'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">// aquí ampliamos la consulta</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:#0000FF;">$Ssql</span> = <span style="color:#FF0000;">'SELECT .... FROM ...</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">INNER JOIN&nbsp; ...</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:#FF0000;">INNER JOIN&nbsp; ...</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">WHERE ....</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:#FF0000;">AND ...</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">ORDER BY ...'</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:#0000FF;">$result</span> = <a href="http://www.php.net/mysql_query" target="_blank"><span style="color:#000066;">mysql_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$Ssql</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>SQL_BIG_SELECTS = {0 | 1}</strong></p>
<p>Con valor 0, MySQL aborta los comandos SELECT que probablemente tardarán mucho tiempo (esto es, comandos para los que el optimizador estima que el número de registros examinados excede el valor de max_join_size). Esto es útil cuando un comando WHERE no aconsejable se ejecuta. El valor por defecto para una nueva conexión es 1, que permite todos los comandos SELECT .</p>
<p>Si cambia la variable de sistema max_join_size a un valor distinto a DEFAULT, SQL_BIG_SELECTS se pone a 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/bases-de-datos/solucion-error-sql_big_selects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertir un archivo .nrg (Nero) a .iso en Linux</title>
		<link>http://ayuda.fotopex.com/software/convertir-un-archivo-nrg-nero-a-iso-en-linux/</link>
		<comments>http://ayuda.fotopex.com/software/convertir-un-archivo-nrg-nero-a-iso-en-linux/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 14:32:04 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[NRG]]></category>
		<category><![CDATA[nrg2iso]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=748</guid>
		<description><![CDATA[Vamos a utilizar nrg2iso, nrg2iso es un programa que extrae los datos ISO9660 de un archivo .nrg (Nero).

 




Primero instalamos nrg2iso:
$ sudo apt-get install nrg2iso
La sintaxis para ser utilizado es:
nrg2iso [nrg-file] [iso-file]
Una vez que lo tengas instalado, para convertir un fichero de nero llamado image.nrg a un fichero iso llamado image.iso, ejecutamos:
$ nrg2iso image.nrg image.iso

Algunas [...]]]></description>
			<content:encoded><![CDATA[<p>Vamos a utilizar <strong>nrg2iso</strong>, nrg2iso es un programa que extrae los datos ISO9660 de un archivo .nrg (Nero).</p>
<div style="padding: 5px; float: left; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>Primero instalamos <strong>nrg2iso</strong>:</p>
<p><strong>$ sudo apt-get install nrg2iso</strong></p>
<p>La sintaxis para ser utilizado es:</p>
<p><strong>nrg2iso [nrg-file] [iso-file]</strong></p>
<p>Una vez que lo tengas instalado, para convertir un fichero de nero llamado <strong>image.nrg</strong> a un fichero iso llamado <strong>image.iso</strong>, ejecutamos:</p>
<p><strong>$ nrg2iso image.nrg image.iso</strong></p>
<div style="clear:both;"></div>
<p>Algunas ocasiones recibiremos el mensaje <strong>is already an ISO 9660 image</strong>, "<strong>ya es una imagen ISO 9660</strong>", entonces no es necesario convertirlo, solamente cambia la extensión y podrás utilizar tu archivo.</p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/software/convertir-un-archivo-nrg-nero-a-iso-en-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kubuntu 9.10 sin sonido en youtube</title>
		<link>http://ayuda.fotopex.com/so/kubuntu-9-10-sin-sonido-en-youtube/</link>
		<comments>http://ayuda.fotopex.com/so/kubuntu-9-10-sin-sonido-en-youtube/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 17:43:02 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[SO]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sonido]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=745</guid>
		<description><![CDATA[Después de la instalación de Kubuntu y posteriormente de Firefox, al reproducir un video, solo podemos observarlo pero no se escucha el sonido de este. De igual forma no son solo los videos de youtube, sino cualquier video que se encuentre en la web y que este basado en flash (flv) tiene ese problema.
La solución [...]]]></description>
			<content:encoded><![CDATA[<p>Después de la instalación de Kubuntu y posteriormente de Firefox, al reproducir un video, solo podemos observarlo pero no se escucha el sonido de este. De igual forma no son solo los videos de youtube, sino cualquier video que se encuentre en la web y que este basado en flash (flv) tiene ese problema.</p>
<p>La solución es tan simple como subir el volumen:</p>
<div style="padding: 5px; float: left; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>1.- Click sobre el ícono de la bocina (de KMix) que aparece en la parte inferior derecha de la pantalla (en el panel  de tareas).</p>
<p>2.- Click sobre el botón mezclador. Eso abrirá una ventana pequeña.</p>
<p>3.- Click sostenido y subir el control que aparece en el medio <strong>PCM</strong>.</p>
<div style="clear:both;"></div>
<p><strong>Así de fácil</strong>.</p>
<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/kubuntu-9.10-sin-sonido-1.png" alt="" title="kubuntu-9.10-sin sonido-1" width="240" height="239" class="aligncenter size-full wp-image-747" /></p>
<p><a href="http://ayuda.fotopex.com/wp-content/uploads/2010/03/kubuntu-9.10-sin-sonido.png"><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/kubuntu-9.10-sin-sonido-490x331.png" alt="" title="kubuntu-9.10-sin sonido" width="490" height="331" class="aligncenter size-medium wp-image-746" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/so/kubuntu-9-10-sin-sonido-en-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Escribir datos de un OleDbDataReader a un archivo de texto</title>
		<link>http://ayuda.fotopex.com/programacion/net/escribir-datos-de-un-oledbdatareader-a-un-archivo-de-texto/</link>
		<comments>http://ayuda.fotopex.com/programacion/net/escribir-datos-de-un-oledbdatareader-a-un-archivo-de-texto/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 23:46:01 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Archivos]]></category>
		<category><![CDATA[Tabla]]></category>
		<category><![CDATA[Texto]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=744</guid>
		<description><![CDATA[OleDbDataReader proporciona el modo de lectura de una secuencia de filas de datos de tipo sólo avance de un origen de datos. Esta clase no se puede heredar. 
Para crear OleDbDataReader, se debe llamar al método ExecuteReader del objeto OleDbCommand, en lugar de utilizar directamente un constructor.
Mientras se está utilizando OleDbDataReader, el objeto OleDbConnection asociado [...]]]></description>
			<content:encoded><![CDATA[<p><strong>OleDbDataReader</strong> proporciona el modo de lectura de una secuencia de filas de datos de tipo sólo avance de un origen de datos. Esta clase no se puede heredar. </p>
<p>Para crear OleDbDataReader, se debe llamar al método ExecuteReader del objeto OleDbCommand, en lugar de utilizar directamente un constructor.</p>
<p>Mientras se está utilizando OleDbDataReader, el objeto OleDbConnection asociado está ocupado dando servicio a OleDbDataReader, y en OleDbConnection no se puede realizar ninguna otra operación, excepto la de cerrar. Esto es así hasta que se llama al método Close de OleDbDataReader. Por ejemplo, <span id="more-744"></span>no se pueden recuperar parámetros de salida hasta después de llamar a Close.</p>
<p>Los cambios que realiza otro proceso o subproceso en un conjunto de resultados mientras se leen los datos, pueden ser visibles para el usuario de OleDbDataReader. Sin embargo, el comportamiento exacto depende de los intervalos de tiempo.</p>
<p>IsClosed y RecordsAffected son las únicas propiedades a las que se puede llamar después de cerrarse OleDbDataReader. Si bien se puede obtener acceso a la propiedad RecordsAffected mientras exista OleDbDataReader, se debe llamar siempre al método Close antes de devolver el valor de RecordsAffected para garantizar que el valor devuelto sea exacto.</p>
<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>En el siguiente ejemplo se crean OleDbConnection, OleDbCommand y OleDbDataReader. En el ejemplo se leen los datos y se escriben en la consola. Por último, en el ejemplo se cierra OleDbDataReader y, a continuación, OleDbConnection.</p>
<div style="clear:both;"></div>
<div class="igBar"><span id="lvbnet-5"><a href="#" onclick="javascript:showPlainTxt('vbnet-5'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-5">
<div class="vbnet">
<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: #FF8000;">Public</span> <span style="color: #0600FF;">Sub</span> ReadData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #0600FF;">Dim</span> connectionString <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> = <span style="color: #808080;">"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\\FotoPex\FpTimer\data\data.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; &nbsp; <span style="color: #0600FF;">Dim</span> queryString <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> = <span style="color: #808080;">"SELECT usuario, Format(entrada, 'hh:mm:ss') as Entrada, Format(salida, 'hh:mm:ss') as Salida FROM(bitacora) WHERE (((fecha)=#03/04/2010#)) Order by id DESC ;"</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; Using connection <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> OleDbConnection<span style="color: #000000;">&#40;</span>connectionString<span style="color: #000000;">&#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: #0600FF;">Dim</span> <span style="color: #0600FF;">command</span> <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> OleDbCommand<span style="color: #000000;">&#40;</span>queryString, connection<span style="color: #000000;">&#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; connection.<span style="color: #0600FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #0600FF;">Dim</span> reader <span style="color: #FF8000;">As</span> OleDbDataReader = <span style="color: #0600FF;">command</span>.<span style="color: #0000FF;">ExecuteReader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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; <span style="color: #0600FF;">While</span> reader.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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; Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>reader<span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">0</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#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; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">While</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; reader.<span style="color: #0600FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #0600FF;">End</span> Using</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora vamos a ver una variante del ejemplo para <a href="http://ayuda.fotopex.com/programacion/net/escribir-datos-de-una-tabla-a-un-archivo-de-texto/">escribir datos de una tabla a un archivo de texto</a>, pero esta vez utilizaremos un OleDbDataReader para obtener los datos. No olvidemos declarar el NameSpace <strong>Imports System.IO</strong></p>
<div class="igBar"><span id="lvbnet-6"><a href="#" onclick="javascript:showPlainTxt('vbnet-6'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-6">
<div class="vbnet">
<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: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> GrabaArchivo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #0600FF;">Dim</span> cn <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> OleDbConnection<span style="color: #000000;">&#40;</span><span style="color: #808080;">"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\\FotoPex\FpTimer\data\data.mdb"</span><span style="color: #000000;">&#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: #0600FF;">Dim</span> sql <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">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;</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: #0600FF;">Try</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: #008080; font-style: italic;">' preparamos el archivo</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: #0600FF;">Dim</span> Bitacora <span style="color: #FF8000;">As</span> StreamWriter</div>
</li>
<li style="font-family: 'Courier 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: #0600FF;">Dim</span> NuevaLinea <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> = <span style="color: #808080;">""</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: #0600FF;">Dim</span> newFileName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> = BitacoraPath &amp; <span style="color: #FF0000;">Date</span>.<span style="color: #0600FF;">Today</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"MMM dd yyyy"</span><span style="color: #000000;">&#41;</span> &amp; <span style="color: #808080;">".txt"</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: #008080; font-style: italic;">' verificamos si existe</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: #0600FF;">If</span> <a href="http://www.google.com/search?q=FILE+msdn.microsoft.com"><span style="color: #008000;">File</span></a>.<span style="color: #0000FF;">Exists</span><span style="color: #000000;">&#40;</span>newFileName<span style="color: #000000;">&#41;</span> = <span style="color: #0600FF;">False</span> <span style="color: #FF8000;">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: #008080; font-style: italic;">' lo creamos</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; Bitacora = <a href="http://www.google.com/search?q=FILE+msdn.microsoft.com"><span style="color: #008000;">File</span></a>.<span style="color: #0000FF;">CreateText</span><span style="color: #000000;">&#40;</span>newFileName<span style="color: #000000;">&#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; <span style="color: #FF8000;">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; <span style="color: #008080; font-style: italic;">' lo abrimos para agregar texto</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; Bitacora = <a href="http://www.google.com/search?q=FILE+msdn.microsoft.com"><span style="color: #008000;">File</span></a>.<span style="color: #0000FF;">AppendText</span><span style="color: #000000;">&#40;</span>newFileName<span style="color: #000000;">&#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: #0600FF;">End</span> <span style="color: #0600FF;">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; NuevaLinea = <span style="color: #808080;">"Time: "</span> &amp; <span style="color: #FF0000;">Date</span>.<span style="color: #0600FF;">Now</span>.<span style="color: #0000FF;">ToShortTimeString</span> &amp; vbCrLf &amp; _</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;">"Usuario"</span> &amp; vbTab &amp; <span style="color: #808080;">"&nbsp; Entrada&nbsp; "</span> &amp; vbTab &amp; <span style="color: #808080;">"&nbsp; Salida&nbsp; "</span> &amp; vbTab &amp; <span style="color: #808080;">"Total"</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: #008080; font-style: italic;">'agregamos datos al buffer en una linea nueva</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; Bitacora.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>NuevaLinea<span style="color: #000000;">&#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; &nbsp; <span style="color: #008080; font-style: italic;">' buscamos los resultados</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; cn.<span style="color: #0600FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #008080; font-style: italic;">' por otro carácter</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; sql = <span style="color: #808080;">"SELECT usuario, Format(entrada, 'hh:mm:ss') as Entrada, Format(salida, 'hh:mm:ss') as Salida FROM(bitacora) WHERE (((fecha)=#03/04/2010#)) Order by id DESC ;"</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: #008080; font-style: italic;">'creamos un comando</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: #0600FF;">Dim</span> cmd <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> OleDbCommand<span style="color: #000000;">&#40;</span>sql, cn<span style="color: #000000;">&#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: #0600FF;">Dim</span> dr <span style="color: #FF8000;">As</span> OleDbDataReader = cmd.<span style="color: #0000FF;">ExecuteReader</span><span style="color: #000000;">&#40;</span>CommandBehavior.<span style="color: #0000FF;">CloseConnection</span><span style="color: #000000;">&#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; <span style="color: #0600FF;">Do</span> <span style="color: #0600FF;">While</span> dr.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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; NuevaLinea = dr.<span style="color: #0000FF;">Item</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"usuario"</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToString</span> &amp; vbTab &amp; dr.<span style="color: #0000FF;">Item</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Entrada"</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToString</span> &amp; vbTab &amp; dr.<span style="color: #0000FF;">Item</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"Salida"</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToString</span> &amp; vbTab &amp; <span style="color: #808080;">"Total"</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; Bitacora.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>NuevaLinea<span style="color: #000000;">&#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: #008080; font-style: italic;">' limpiamos el buffer y escribimos los datos contenidos al stream</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; Bitacora.<span style="color: #0000FF;">Flush</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #0600FF;">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; &nbsp; NuevaLinea = vbCrLf &amp; <span style="color: #808080;">"********************* ***** "</span> &amp; vbCrLf</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; Bitacora.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>NuevaLinea<span style="color: #000000;">&#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; Bitacora.<span style="color: #0000FF;">Flush</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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; Bitacora.<span style="color: #0600FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #008080; font-style: italic;">' no olvides cerrar el 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; dr.<span style="color: #0600FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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: #0600FF;">Catch</span> ex <span style="color: #FF8000;">As</span> Exception</div>
</li>
<li style="font-family: 'Courier 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: #008080; font-style: italic;">'mostramos el error</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: #0600FF;">If</span> <a href="http://www.google.com/search?q=ERR+msdn.microsoft.com"><span style="color: #008000;">Err</span></a>.<span style="color: #0000FF;">Number</span> = <span style="color: #FF0000;color:#800000;">91</span> Or <a href="http://www.google.com/search?q=ERR+msdn.microsoft.com"><span style="color: #008000;">Err</span></a>.<span style="color: #0000FF;">Number</span> = <span style="color: #FF0000;color:#800000;">5</span> <span style="color: #FF8000;">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: #008080; font-style: italic;">'MessageBox.Show(&quot;No se encontro registro&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; &nbsp; <a href="http://www.google.com/search?q=ERR+msdn.microsoft.com"><span style="color: #008000;">Err</span></a>.<span style="color: #0000FF;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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; <span style="color: #FF8000;">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; MessageBox.<span style="color: #0000FF;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"error "</span> &amp; <a href="http://www.google.com/search?q=ERR+msdn.microsoft.com"><span style="color: #008000;">Err</span></a>.<span style="color: #0000FF;">Number</span>.<span style="color: #0000FF;">ToString</span> &amp; vbCrLf &amp; ex.<span style="color: #0000FF;">Message</span><span style="color: #000000;">&#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; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">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: #008080; font-style: italic;">'Finally</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: #0600FF;">End</span> <span style="color: #0600FF;">Try</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: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/net/escribir-datos-de-un-oledbdatareader-a-un-archivo-de-texto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clausula LIMIT en Access, SQL, MySQL y ORACLE</title>
		<link>http://ayuda.fotopex.com/programacion/bases-de-datos/clausula-limit-en-access-sql-mysql-y-oracle/</link>
		<comments>http://ayuda.fotopex.com/programacion/bases-de-datos/clausula-limit-en-access-sql-mysql-y-oracle/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 18:53:38 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[Bases de Datos]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[consulta]]></category>
		<category><![CDATA[LIMIT]]></category>
		<category><![CDATA[limitar]]></category>
		<category><![CDATA[MySQL y ORACLE]]></category>
		<category><![CDATA[registros]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=741</guid>
		<description><![CDATA[
 




Para limitar el número de registros que debe devolver una consulta podemos utilizar:
Para Access y MS SQL utilizaremos TOP n de esa forma obtendremos los n primeros resultados de la búsqueda, y si nos interesa son los n últimos, utilizaremos  la cláusula ORDER BY

Texto Plano
SQL:




SELECT TOP n ... FROM ...


WHERE ...


ORDER BY... 






Para [...]]]></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 7 k 1 */ 
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 limitar el número de registros que debe devolver una consulta podemos utilizar:</p>
<p>Para <strong>Access</strong> y MS SQL utilizaremos <strong>TOP n</strong> de esa forma obtendremos los n primeros resultados de la búsqueda, y si nos interesa son los n últimos, utilizaremos  la cláusula <strong>ORDER BY</strong></p>
<div style="clear:both;"></div>
<div class="igBar"><span id="lsql-11"><a href="#" onclick="javascript:showPlainTxt('sql-11'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">SQL:</span>
<div id="sql-11">
<div class="sql">
<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: #993333; font-weight: bold;">SELECT</span> TOP n ... <span style="color: #993333; font-weight: bold;">FROM</span> ...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">WHERE</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: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span>... </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para <strong>MySQL</strong> utilizaremos <strong>LIMIT n </strong>, que ademas permite el compaginado agregando al final de un <strong>SELECT</strong>la clausula "<strong>LIMIT</strong>".<br />
<strong>MySQL</strong> - <strong>LIMIT n </strong></p>
<div class="igBar"><span id="lmysql-12"><a href="#" onclick="javascript:showPlainTxt('mysql-12'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">MySQL:</span>
<div id="mysql-12">
<div class="mysql">
<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: #993333; font-weight: bold;">SELECT</span> ... <span style="color: #993333; font-weight: bold;">FROM</span> ...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">WHERE</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;">LIMIT n, n </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Para ver cinco registros a partir del registro 10:</p>
<div class="igBar"><span id="lsql-13"><a href="#" onclick="javascript:showPlainTxt('sql-13'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">SQL:</span>
<div id="sql-13">
<div class="sql">
<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: #993333; font-weight: bold;">SELECT</span> * <span style="color: #993333; font-weight: bold;">FROM</span> tabla <span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #cc66cc;color:#800000;">10</span>,<span style="color: #cc66cc;color:#800000;">5</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>ORACLE</strong> genera una variable, tal y como si fuera un campo más de cada registro de la tabla, llamada “rownum”, la cual se incrementa por cada registro que vamos recuperando. De esta manera, sólo tenemos que acceder a esta variable y controlar que no sobrepasa el número que nos hemos propuesto como límite.</p>
<div class="igBar"><span id="loracle8-14"><a href="#" onclick="javascript:showPlainTxt('oracle8-14'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">ORACLE8:</span>
<div id="oracle8-14">
<div class="oracle8">
<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: #993333; font-weight: bold; text-transform: uppercase;">SELECT</span> campos</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">FROM</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">TABLE</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: #993333; font-weight: bold; text-transform: uppercase;">WHERE</span> condicion</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold; text-transform: uppercase;">AND</span> <span style="color: #993333; font-weight: bold; text-transform: uppercase;">ROWNUM</span> &lt;= <span style="color: #cc66cc;color:#800000;">2</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/bases-de-datos/clausula-limit-en-access-sql-mysql-y-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activar Windows 7 actualizado</title>
		<link>http://ayuda.fotopex.com/so/activar-windows-7-actualizado/</link>
		<comments>http://ayuda.fotopex.com/so/activar-windows-7-actualizado/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 16:54:29 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[SO]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=740</guid>
		<description><![CDATA[La actualización de Windows 7 kb971033 que elimina la mayoría de los métodos de activación del sistema operativo, ya tiene una solución, y mucho que tienen Windows 7 pirata lo han probado.
Enlace Protégete del WAT (Windows Activation Technologies).

 




]]></description>
			<content:encoded><![CDATA[<p>La actualización de <strong>Windows 7</strong> <strong>kb971033</strong> que elimina la mayoría de los métodos de activación del sistema operativo, ya tiene una solución, y mucho que tienen <strong>Windows 7 pirata</strong> lo han probado.</p>
<p>Enlace <a href="http://www.windows7hack.com/foros/3-noticias/16423-protegete-del-wat-windows-activation-technologies" target="_blank">Protégete del WAT (Windows Activation Technologies)</a>.</p>
<p>
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>
</p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/so/activar-windows-7-actualizado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crea un Emoticon Animado Fácilmente</title>
		<link>http://ayuda.fotopex.com/software/crea-un-emoticon-animado-facilmente/</link>
		<comments>http://ayuda.fotopex.com/software/crea-un-emoticon-animado-facilmente/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 15:22:47 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Animado]]></category>
		<category><![CDATA[Crea]]></category>
		<category><![CDATA[Emoticon]]></category>
		<category><![CDATA[Fácilmente]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=736</guid>
		<description><![CDATA[
Un emoticono es una secuencia de caracteres ASCII que, en un principio, representaba una cara humana y expresaba una emoción. Pero, posteriormente, fueron creándose otros emoticonos con significados muy diversos. Los emoticonos que expresan alegría u otras emociones positivas se clasifican normalmente como smileys (de smile, «sonrisa» en inglés). Los emoticonos se emplean frecuentemente en [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/fotopex-emoticon.jpg" alt="" title="fotopex-emoticon" width="217" height="189" class="alignleft size-full wp-image-737" /><br />
Un emoticono es una secuencia de caracteres ASCII que, en un principio, representaba una cara humana y expresaba una emoción. Pero, posteriormente, fueron creándose otros emoticonos con significados muy diversos. Los emoticonos que expresan alegría u otras emociones positivas se clasifican normalmente como smileys (de smile, «sonrisa» en inglés). Los emoticonos se emplean frecuentemente en mensajes de correo electrónico, en foros, SMS y en los chats mediante servicios de mensajería instantánea. Si se gira a la derecha el emoticono <img src='http://ayuda.fotopex.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  se obtiene una cara. Una cara sonriente derivada del emoticono <img src='http://ayuda.fotopex.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (smiley).</p>
<p><span id="more-736"></span></p>
<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>Los emoticonos se han ido desarrollando a lo largo de los años, principalmente, para imitar las expresiones faciales y las emociones, para vencer las limitaciones de tener que comunicarse sólo en forma de texto y porque sirven como abreviaturas. Se han escrito libros sobre este tema, con listas interminables de emoticonos.</p>
<p>En los foros de Internet, los emoticonos se suelen reemplazar automáticamente por las imágenes correspondientes. En algunos editores de texto (como por ejemplo Microsoft Word), la opción de «corrección automática» reconoce emoticonos básicos como <img src='http://ayuda.fotopex.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  y <img src='http://ayuda.fotopex.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , cambiándolos por el carácter correspondiente.</p>
<p>Para esos amigos que les gusta ver su conversación en el mensajero repleto de emoticonos en el blog de Softonic te muestran <a href="http://es.onsoftware.com/p/crea-emoticonos-animados-con-photoshop-en-10-pasos" target="_blank">cómo crear un emoticon animado en 10 pasos</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/software/crea-un-emoticon-animado-facilmente/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Elimina referencias a la version de WordPress</title>
		<link>http://ayuda.fotopex.com/software/elimina-referencias-a-la-version-de-wordpress/</link>
		<comments>http://ayuda.fotopex.com/software/elimina-referencias-a-la-version-de-wordpress/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 14:43:06 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Elimina]]></category>
		<category><![CDATA[referencias]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=735</guid>
		<description><![CDATA[Una solución muy limpia, segura y efectiva es añadir el siguiente código al fichero functions.php de tu tema activo:
Texto Plano
PHP:




function quitar_version_wp&#40;&#41; &#123;


&#160; &#160; &#160; return '';


&#160; &#160; &#160; &#125;


&#160; &#160; &#160; add_filter&#40;'the_generator', 'quitar_version_wp'&#41;; 






De este modo el número de versión de WordPress no se mostrará en ninguna parte de blog.

 




]]></description>
			<content:encoded><![CDATA[<p>Una solución muy limpia, segura y efectiva es añadir el siguiente código al fichero <strong>functions.php</strong> de tu tema activo:</p>
<div class="igBar"><span id="lphp-16"><a href="#" onclick="javascript:showPlainTxt('php-16'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-16">
<div class="php">
<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:#000000; font-weight:bold;">function</span> quitar_version_wp<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;">&#123;</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:#616100;">return</span> <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:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; add_filter<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'the_generator'</span>, <span style="color:#FF0000;">'quitar_version_wp'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
De este modo el número de versión de <strong>WordPress </strong>no se mostrará en ninguna parte de blog.<br />

 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>
</p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/software/elimina-referencias-a-la-version-de-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SHA-1 Con VB.NET 2008</title>
		<link>http://ayuda.fotopex.com/programacion/net/sha-1-con-vb-net-2008/</link>
		<comments>http://ayuda.fotopex.com/programacion/net/sha-1-con-vb-net-2008/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 01:50:18 +0000</pubDate>
		<dc:creator>Mr. FotoPex</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[VB]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://ayuda.fotopex.com/?p=731</guid>
		<description><![CDATA[

 




Necesitamos :
1 caja de texto TextBox1
1 botón Button1
1 etiqueta para el mensaje lblMsg
Ya sabes que puedes bajarte los archivos sha1 con vb.net


Texto Plano
VB.NET:




Imports System.Security.Cryptography


Imports System.Text


&#160;


Public Class Form1 


&#160; Private Function generarClaveSHA1&#40;ByVal nombre As String&#41; As String


&#160; &#160; Dim enc As New UTF8Encoding


&#160; &#160; Dim data&#40;&#41; As Byte = enc.GetBytes&#40;nombre&#41;


&#160; &#160; Dim result&#40;&#41; As Byte


&#160;


&#160; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://ayuda.fotopex.com/wp-content/uploads/2010/03/sha1-small.jpg" alt="" title="sha1-small" width="550" height="189" class="aligncenter size-full wp-image-732" /></p>
<div style="padding: 5px; float: right; " >
 <script type="text/javascript"><!--
google_ad_client = "pub-6087605660472467";
/* ayuda-foto-adsense-cuadro300x250, creado 4/12/08 7 k 1 */ 
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>Necesitamos :</p>
<p>1 caja de texto <strong>TextBox1</strong><br />
1 botón <strong>Button1</strong><br />
1 etiqueta para el mensaje <strong>lblMsg</strong></p>
<p>Ya sabes que puedes bajarte los archivos <a href='http://ayuda.fotopex.com/wp-content/uploads/2010/03/sha1.zip'>sha1 con vb.net</a></p>
<div style="clear:both;"></div>
<p><span id="more-731"></span></p>
<div class="igBar"><span id="lvbnet-18"><a href="#" onclick="javascript:showPlainTxt('vbnet-18'); return false;">Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-18">
<div class="vbnet">
<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: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Security</span>.<span style="color: #0000FF;">Cryptography</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">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;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Class</span> Form1 </div>
</li>
<li style="font-family: 'Courier 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: #FF8000;">Private</span> <span style="color: #0600FF;">Function</span> generarClaveSHA1<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> nombre <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">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: #0600FF;">Dim</span> enc <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> UTF8Encoding</div>
</li>
<li style="font-family: 'Courier 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: #0600FF;">Dim</span> data<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Byte</span> = enc.<span style="color: #0000FF;">GetBytes</span><span style="color: #000000;">&#40;</span>nombre<span style="color: #000000;">&#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: #0600FF;">Dim</span> result<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Byte</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; <span style="color: #0600FF;">Dim</span> sha <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> SHA1CryptoServiceProvider<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#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; result = sha.<span style="color: #0000FF;">ComputeHash</span><span style="color: #000000;">&#40;</span>data<span style="color: #000000;">&#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: #0600FF;">Dim</span> sb <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> StringBuilder</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: #FF8000;">For</span> i <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Integer</span> = <span style="color: #FF0000;color:#800000;">0</span> <span style="color: #FF8000;">To</span> result.<span style="color: #0000FF;">Length</span> - <span style="color: #FF0000;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; <span style="color: #0600FF;">If</span> result<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span> &lt;<span style="color: #FF0000;color:#800000;">16</span> <span style="color: #FF8000;">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; sb.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"0"</span><span style="color: #000000;">&#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; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">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; sb.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span>result<span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">"x"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#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: #FF8000;">Next</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Return sb.<span style="color: #0000FF;">ToString</span>.<span style="color: #0000FF;">ToUpper</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: #0600FF;">End</span> <span style="color: #0600FF;">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; <span style="color: #FF8000;">Private</span> <span style="color: #0600FF;">Sub</span> Button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> System.<span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> Button1.<span style="color: #0000FF;">Click</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: #FF8000;">Me</span>.<span style="color: #0000FF;">lblMsg</span>.<span style="color: #0000FF;">Text</span> = generarClaveSHA1<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">Me</span>.<span style="color: #0000FF;">TextBox1</span>.<span style="color: #0000FF;">Text</span><span style="color: #000000;">&#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; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Class</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://ayuda.fotopex.com/programacion/net/sha-1-con-vb-net-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
