<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'please help me with exception handling' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'please help me with exception handling' posted on the 'Beginner VB' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Sat, 17 May 2008 23:04:28 -0700</pubDate>
    <lastBuildDate>Sat, 17 May 2008 23:04:28 -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>please help me with exception handling</title>
      <link>http://www.programmersheaven.com/mb/VB_Beginner/370675/370675/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;please help me with exception handling&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 28 Mar 2008 at 6:48 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;please help me to write the code or algorithm for this program. &lt;br /&gt;
&lt;br /&gt;
Input a list of integers: 3 5 12 -2 0 -3&lt;br /&gt;
Sum of squares: 191&lt;br /&gt;
&lt;br /&gt;
the program that i will make will go like this:&lt;br /&gt;
&lt;br /&gt;
I will use a textbox then I will put integers in it. Then the integers that i will input will be squared for example, input integers; 3 9 12  and then  3 becomes 9, 9 will be 81 and 12 will be 144 after that, if i press the command button the integers 9,81, and 144 will be added or sum up. &lt;br /&gt;
&lt;br /&gt;
the exception handling are:&lt;br /&gt;
range of -100 to 100 &lt;br /&gt;
to the ensure that the input values are in range and are legal integers, &lt;br /&gt;
&lt;br /&gt;
________________&lt;br /&gt;
how can i read the integers that I put in the textbox?&lt;br /&gt;
how can i square the integers and add it all?&lt;br /&gt;
how can i apply the exception handling/&lt;br /&gt;
to handle the error of the sum of the squares becoming larger&lt;br /&gt;
&lt;br /&gt;
i hope someone would help me... Thank you =D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Fri, 28 Mar 2008 06:48:55 -0700</pubDate>
      <category>Beginner VB</category>
    </item>
    <item>
      <title>Re: please help me with exception handling</title>
      <link>http://www.programmersheaven.com/mb/VB_Beginner/370675/371241/ReadMessage.aspx#371241</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Re: please help me with exception handling&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 15 Apr 2008 at 10:51 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;: please help me to write the code or algorithm for this program. &lt;br /&gt;
: &lt;br /&gt;
: Input a list of integers: 3 5 12 -2 0 -3&lt;br /&gt;
: Sum of squares: 191&lt;br /&gt;
: &lt;br /&gt;
: the program that i will make will go like this:&lt;br /&gt;
: &lt;br /&gt;
: I will use a textbox then I will put integers in it. Then the &lt;br /&gt;
: integers that i will input will be squared for example, input &lt;br /&gt;
: integers; 3 9 12  and then  3 becomes 9, 9 will be 81 and 12 will be &lt;br /&gt;
: 144 after that, if i press the command button the integers 9,81, and &lt;br /&gt;
: 144 will be added or sum up. &lt;br /&gt;
: &lt;br /&gt;
: the exception handling are:&lt;br /&gt;
: range of -100 to 100 &lt;br /&gt;
: to the ensure that the input values are in range and are legal &lt;br /&gt;
: integers, &lt;br /&gt;
: &lt;br /&gt;
: ________________&lt;br /&gt;
: how can i read the integers that I put in the textbox?&lt;br /&gt;
: how can i square the integers and add it all?&lt;br /&gt;
: how can i apply the exception handling/&lt;br /&gt;
: to handle the error of the sum of the squares becoming larger&lt;br /&gt;
: &lt;br /&gt;
: i hope someone would help me... Thank you =D&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
Try this.&lt;br /&gt;
Place 3 textbox, text1 text2 and text3&lt;br /&gt;
place 1 label&lt;br /&gt;
2 command buttons&lt;br /&gt;
then place this on your code&lt;br /&gt;
&lt;br /&gt;
Private Sub Command1_Click()&lt;br /&gt;
    Dim n1 As Integer, n2 As Integer, n3 As Integer&lt;br /&gt;
    n1 = Val(Text1.Text)&lt;br /&gt;
    n2 = Val(Text2.Text)&lt;br /&gt;
    n3 = Val(Text3.Text)&lt;br /&gt;
    If n1 &amp;gt;= -100 And n1 &amp;lt;= 100 Then&lt;br /&gt;
        If n2 &amp;gt;= -100 And n2 &amp;lt;= 100 Then&lt;br /&gt;
            If n3 &amp;gt;= -100 And n3 &amp;lt;= 100 Then&lt;br /&gt;
                n1 = n1 * n1&lt;br /&gt;
                n2 = n2 * n2&lt;br /&gt;
                n3 = n3 * n3&lt;br /&gt;
                Text1.Text = n1&lt;br /&gt;
                Text2.Text = n2&lt;br /&gt;
                Text3.Text = n3&lt;br /&gt;
            Else&lt;br /&gt;
                MsgBox ("Invalid Value")&lt;br /&gt;
            End If&lt;br /&gt;
        Else&lt;br /&gt;
            MsgBox ("Invalid Value")&lt;br /&gt;
        End If&lt;br /&gt;
    Else&lt;br /&gt;
        MsgBox ("Invalid Value")&lt;br /&gt;
    End If&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Private Sub Command2_Click()&lt;br /&gt;
    Label1 = "= " &amp;amp; Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text)&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
i hope this will help&lt;br /&gt;
I'm the best there is, &lt;br /&gt;
the best there was,&lt;br /&gt;
and the best there ever will be.&lt;br /&gt;
hahahahaha lolz :)&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Tue, 15 Apr 2008 22:51:07 -0700</pubDate>
      <category>Beginner VB</category>
    </item>
  </channel>
</rss>