<?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>La Web de DIOH &#187; pascal</title>
	<atom:link href="http://www.lawebdedioh.com/tag/pascal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lawebdedioh.com</link>
	<description>Un Blog mas en la red</description>
	<lastBuildDate>Wed, 18 May 2011 21:28:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Validar tipo numerico en pascal</title>
		<link>http://www.lawebdedioh.com/2009/05/validar-tipo-numerico-en-pascal/</link>
		<comments>http://www.lawebdedioh.com/2009/05/validar-tipo-numerico-en-pascal/#comments</comments>
		<pubDate>Wed, 20 May 2009 03:44:38 +0000</pubDate>
		<dc:creator>DIOH</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[pascal]]></category>
		<category><![CDATA[validacion]]></category>

		<guid isPermaLink="false">http://www.lawebdedioh.com/?p=130</guid>
		<description><![CDATA[Hace poco estuve trabajando con este arcaico lenguaje de programacion que sigue sin gustarme, estuve lidiando con una validacion de una variable  tipo numerico que hacia dejar de funcionar el programa, despues de dar muchas vueltas en internet casi nadie tiene un ejemplo claro de como hacer la validacion de que el valor ingresado sea [...]<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.lawebdedioh.com/2009/05/validar-tipo-numerico-en-pascal/' addthis:title='Validar tipo numerico en pascal ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Hace poco estuve trabajando con este arcaico lenguaje de programacion que sigue sin gustarme, estuve lidiando con una validacion de una variable  tipo numerico que hacia dejar de funcionar el programa, despues de dar muchas vueltas en internet casi nadie tiene un ejemplo claro de como hacer la validacion de que el valor ingresado sea una variable tipo numerico,  asi que les voy a poner el ejemplo sencillo y practico.</p>

<div class="wp_syntax"><div class="code"><pre class="pascal" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">program</span> validacion;
<span style="color: #000000; font-weight: bold;">uses</span> crt;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span>
  tmpstr<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">string</span>;
  numero<span style="color: #339933;">,</span> error<span style="color: #339933;">:</span>  <span style="color: #000066; font-weight: bold;">integer</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">begin</span>
  clrscr;
  <span style="color: #000000; font-weight: bold;">repeat</span>
    <span style="color: #000066;">writeln</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'Escriba un numero: '</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000066;">readln</span><span style="color: #009900;">&#40;</span>tmpstr<span style="color: #009900;">&#41;</span>;
    val<span style="color: #009900;">&#40;</span>tmpstr<span style="color: #339933;">,</span> numero<span style="color: #339933;">,</span> error<span style="color: #009900;">&#41;</span>;
  <span style="color: #000000; font-weight: bold;">until</span> error<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span> ;
  <span style="color: #000066;">writeln</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">'El numero '</span> <span style="color: #339933;">,</span>numero<span style="color: #339933;">,</span> <span style="color: #ff0000;">' es un tipo numerico valido'</span><span style="color: #009900;">&#41;</span>;
  readkey;
<span style="color: #000000; font-weight: bold;">end</span>.</pre></div></div>

<div class="addthis_toolbox addthis_default_style addthis_" addthis:url='http://www.lawebdedioh.com/2009/05/validar-tipo-numerico-en-pascal/' addthis:title='Validar tipo numerico en pascal ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.lawebdedioh.com/2009/05/validar-tipo-numerico-en-pascal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

