

<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>RSS Feeds :: DEVPPL - Forums > Visual Basic Forum : Topics : Initial value of a text box VB</title>
	<!--<atom:link href="http://www.devppl.com/forum" rel="self" type="application/rss+xml" />-->
		<description>TOGETHER WE ARE THE BEST</description>
		<link>http://www.devppl.com/forum</link>
		<language>en-gb</language>
		<pubDate>Tue, 17 Aug 2004 14:07:13 +0100</pubDate>
		<lastBuildDate>Sat, 21 Nov 2009 12:08:54 +0000</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MSSTI v0.0.1 - (C) 2008 leviatan21 - http://www.mssti.com/</generator>
		<copyright>Copyright : (c) RSS Feeds :: DEVPPL - Tue, 17 Aug 2004 14:07:13 +0100</copyright>
		<dc:creator>webmaster@devppl.com (DEVPPL)</dc:creator>

		<image>
			<title>RSS Feeds :: DEVPPL - Forums > Visual Basic Forum : Topics : Initial value of a text box VB</title>
			<url>http://www.devppl.com/forum/styles/DEVPPL/imageset/site_logo.gif</url>
			<link>http://www.devppl.com/forum</link>
		</image>
		<ttl>60</ttl>
		
		<item>
			<title>Initial value of a text box VB</title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=51636#p51636</link>
				<description><![CDATA[  Hi there,<br /><br />I have an issue with an application I am writing, I
get information from a database, put the values into a label, then add up
all the label values.<br />I use the following code to intialise the labels
(12 of):<br /><br /><div class="codetitle"><b>Code:</b></div><div
class="codecontent">temp4 = main.ManualBonus1.contTarq2m1.Text<br />&nbsp;
&nbsp; &nbsp; &nbsp;If Not IsNumeric(temp4) Then _
main.ManualBonus1.contTarq2m1.Text = 0<br />temp4 =
main.ManualBonus1.contTarq2m1.Text</div> <br />I then add themup:<br
/><span style="color: #BF0000"><div
class="codetitle"><b>Code:</b></div><div class="codecontent">temp =
CInt(temp1) + CInt(temp2) + CInt(temp3)....</div></span> <br />But this is
where the error occurs as sometimes they have the value "NaN" in them which
stops the calulation working. The value coming in from the database is
always a number.<br />I get the following error:<br /><br
/>OverflowException was unhandled<br /><br />the calculation is done on
Form Load and if a textbox is altered, and is contained within a User
Control.<br /><br />Any help would be gratefully appreciated.<br /><br
/>Cheers<br /><br />Enizag...<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=43590">enizag</a> &bull; on Thu Apr 30, 2009 12:02 pm &bull; Replies 0 &bull; Views 139</p><hr />]]></description>
					<content:encoded><![CDATA[  Hi there,<br /><br />I have an issue with an application I am writing, I
get information from a database, put the values into a label, then add up
all the label values.<br />I use the following code to intialise the labels
(12 of):<br /><br /><div class="codetitle"><b>Code:</b></div><div
class="codecontent">temp4 = main.ManualBonus1.contTarq2m1.Text<br />&nbsp;
&nbsp; &nbsp; &nbsp;If Not IsNumeric(temp4) Then _
main.ManualBonus1.contTarq2m1.Text = 0<br />temp4 =
main.ManualBonus1.contTarq2m1.Text</div> <br />I then add themup:<br
/><span style="color: #BF0000"><div
class="codetitle"><b>Code:</b></div><div class="codecontent">temp =
CInt(temp1) + CInt(temp2) + CInt(temp3)....</div></span> <br />But this is
where the error occurs as sometimes they have the value "NaN" in them which
stops the calulation working. The value coming in from the database is
always a number.<br />I get the following error:<br /><br
/>OverflowException was unhandled<br /><br />the calculation is done on
Form Load and if a textbox is altered, and is contained within a User
Control.<br /><br />Any help would be gratefully appreciated.<br /><br
/>Cheers<br /><br />Enizag...]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=57"><![CDATA[Visual Basic Forum]]></category>
			<dc:creator><![CDATA[43590]]></dc:creator>
			<dc:date>2009-04-30T12:02:42+01:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=51636#p51636</guid>
		</item>
	
	</channel>
</rss>