<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'need help, newbie here' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'need help, newbie here' posted on the 'Visual Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 20:00:37 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 20:00:37 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>need help, newbie here</title>
      <link>http://www.programmersheaven.com/mb/VBasic/428504/428504/need-help-newbie-here/</link>
      <description>ok, so I am not sure what I'm doing wrong. I wrote this code for an assignment and it is giving me this error: Conversion from string "" to type 'Double' is not valid...on this line r = CDbl(txtResthr.Text)&lt;br /&gt;
&lt;br /&gt;
Here is the full program:&lt;br /&gt;
&lt;br /&gt;
Public Class Form1&lt;br /&gt;
&lt;br /&gt;
    Private Sub txtAge_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAge.TextChanged&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub txtResthr_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtResthr.TextChanged&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click&lt;br /&gt;
        Dim a, r As Double&lt;br /&gt;
        Dim trainingheartrate As Double&lt;br /&gt;
        a = CDbl(txtAge.Text)&lt;br /&gt;
        r = CDbl(txtResthr.Text)&lt;br /&gt;
        trainingheartrate = 0.7 * (220 - a) + 0.3 * r&lt;br /&gt;
        trainingheartrate = Math.Round(trainingheartrate, 1)&lt;br /&gt;
        txtTrainhr.Text = "Your THR is" &amp;amp; trainingheartrate &amp;amp; " beats per minute"&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub txtTrainhr_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtTrainhr.TextChanged&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Can someone point me in the right direction? Thanks!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/428504/428504/need-help-newbie-here/</guid>
      <pubDate>Sat, 19 May 2012 19:17:10 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Re: need help, newbie here</title>
      <link>http://www.programmersheaven.com/mb/VBasic/428504/428505/re-need-help-newbie-here/#428505</link>
      <description>oh, I am using VB 2010&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/VBasic/428504/428505/re-need-help-newbie-here/#428505</guid>
      <pubDate>Sat, 19 May 2012 19:20:45 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
  </channel>
</rss>