 




<?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>IT Answers &#187; Visual Basic 2008 debugging</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/visual-basic-2008-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 22:05:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>End of statement Expected error?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/end-of-statement-expected-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/end-of-statement-expected-error/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 02:00:10 +0000</pubDate>
		<dc:creator>Nog2</dc:creator>
				<category><![CDATA[Developement]]></category>
		<category><![CDATA[Visual Basic 2008]]></category>
		<category><![CDATA[Visual Basic 2008 debugging]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello All:    I am writing a program to calculate a tax rate based on a few simple income levels, but I am getting bogged down with the End of Statement error.  I have tried numerous endings except the obvious  am sure.  Can anyone offer some suggestions?  Here is what I have so far! Private [...]]]></description>
				<content:encoded><![CDATA[<p>Hello All:<br/><br/>    I am writing a program to calculate a tax rate based on a few simple income levels, but I am getting bogged down with the End of Statement error.  I have tried numerous endings except the obvious  am sure.  Can anyone offer some suggestions?  Here is what I have so far!<br/><br/>  Private<br/><br/>   <br/><br/>   Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click  <br/><br/> <br/><br/> Dim TaxableIncome As Double<br/><br/>   <br/><br/>  Dim Condition1 As Double<br/><br/>   <br/><br/>  Dim Condition2 As Double<br/><br/>   <br/><br/>  Dim Condition3 As Double<br/><br/>   <br/><br/>  Dim TaxDue As Double<br/><br/>  TaxableIncome = <br/><br/>  CInt(TaxableIncome) TaxDue = <br/><br/> <br/><br/> CInt(TaxableIncome) Condition1 = TaxableIncome &lt;= 20000 <br/><br/> <br/><br/> &#8216; Condition 1 calculates the taxable income if less than 20000&#8242;<br/><br/>  Condition2 = TaxableIncome &lt;= 50000 <br/><br/>  &#8216;Condition 2 Calculates taxable income if less than 50000&#8242;<br/><br/>  Condition3 = TaxableIncome &gt; 50000 <br/><br/>  &#8216; Condition 3 calculates taxable income if greater than 50000&#8242;<br/><br/>   <br/><br/>  If Condition1 the statements executed if condition1 is True   <br/><br/> <br/><br/> ElseIf TaxableIncome &lt;= 20000 Then TaxDue = TaxableIncome * 0.02  <br/><br/> <br/><br/> ElseIf condition2 Then statements executed if condition2 is True<br/><br/>   <br/><br/>  ElseIf (TaxableIncome &lt;= 50000) Then TaxDue = 400 + .025*(TaxableIncome-20000)  <br/><br/> <br/><br/> ElseIf Condition3 then statements executed if condition 2 is false<br/><br/>   <br/><br/>  ElseIf(TaxableIncome &gt; 50000) Then TaxDue = 1150 + .035*(TaxableIncome-50000)  <br/><br/> <br/><br/> ElseIf (TaxableIncome) Then<br/><br/>  TaxDue = <br/><br/>  CInt(TaxableIncome) &#038; &#8220;Total Taxes Due&#8221; &#038; TaxDue  <br/><br/> <br/><br/> End If<br/><br/>   <br/><br/>  End Sub<br/><br/> <br/><br/> Thanks, NOG2<br/><br/> <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/end-of-statement-expected-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>(2008 Visual Basic) I need help with an error in my code</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2008-visual-basic-i-need-help-with-an-error-in-my-code/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/2008-visual-basic-i-need-help-with-an-error-in-my-code/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 16:51:18 +0000</pubDate>
		<dc:creator>TryingHard</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[innerText]]></category>
		<category><![CDATA[System.NullReferenceException]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Visual Basic 2008]]></category>
		<category><![CDATA[Visual Basic 2008 debugging]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[1.Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click 2.For Each Link As HtmlElement In WebBrowser1.Document.Links 3.Dim strText As String = Link.InnerText 4.If strText.IndexOf(&#8220;Heal&#8221;) &#62; 0 Then 5.Link.InvokeMember(&#8220;Click&#8221;) 6.Exit Sub 7.End If 8.Next 9.End Sub -here is my error i received in line 4. when trying to run my code. System.NullReferenceException was [...]]]></description>
				<content:encoded><![CDATA[<p>1.Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click</p>
<p>2.For Each Link As HtmlElement In WebBrowser1.Document.Links</p>
<p>3.Dim strText As String = Link.InnerText</p>
<p>4.If strText.IndexOf(&#8220;Heal&#8221;) &gt; 0 Then</p>
<p>5.Link.InvokeMember(&#8220;Click&#8221;)</p>
<p>6.Exit Sub</p>
<p>7.End If</p>
<p>8.Next</p>
<p>9.End Sub</p>
<p>-here is my error i received in line 4. when trying to run my code.</p>
<p>System.NullReferenceException was unhandled Message=&#8221;Object reference not set to an instance of an object.&#8221;</p>
<p>what am i doing wrong? does anyone see anything that&#8217;s not right?</p>
<p>additional info:<br />
my code is set to click on a link button on a web page. the inner text changes after the word &#8220;heal&#8221; so i&#8217;m finding it difficult to find a solution to my code. I need some professional guidance.</p>
<p>thank you for your time and help.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/2008-visual-basic-i-need-help-with-an-error-in-my-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/16 queries in 0.022 seconds using memcached
Object Caching 392/425 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 03:01:38 -->