🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #747

[VB.net]formatException

#747
From: bernd
Date: Sun, 21 May 2006 12:07
26 lines
1892 bytes
hallo, zou iemand mij kunnen helpen met het oplossen van onderstaande fout, 
ergens zit een fout, maar ik weet niet wat. in visual studio wordt "Catch 
exceptionObject As FormatException" als fout onderstreept, met de 
foutmelding "type expected". hoe los ik dit op?


Public Class Form1
    Inherits System.Windows.Forms.Form


        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button1.Click
            Dim side As Double
            Try
                side = Double.Parse(TextBox1.Text)
                Label1.Text = "Area is " &  CStr(side * side) _   & " sq 
units"
            Catch exceptionObject As FormatException
                MessageBox.Show(exceptionObject.ToString)
              End Try
    End Sub
End Class



bedankt alvast
Technical Details
Message-ID: <4470581e$0$16885$ba620e4c@news.skynet.be>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!skynet.be!newspost001!tjb!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,e34665cdcc643620,start
X-Google-Thread: 107324,e34665cdcc643620,start
X-Google-Attributes: gidfcea4,gid107324,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!skynet.be!newspost001!tjb!not-for-mail
From: "bernd" <spurnd@belgacom.net>
Newsgroups: be.comp.programming,nl.comp.programmeren
Subject: [VB.net]formatException
Date: Sun, 21 May 2006 14:07:59 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Antivirus: avast! (VPS 0620-3, 19/05/2006), Outbound message
X-Antivirus-Status: Clean
Lines: 28
Message-ID: <4470581e$0$16885$ba620e4c@news.skynet.be>
Organization: -= Belgacom Usenet Service =-
NNTP-Posting-Host: 5b4dc7cf.news.skynet.be
X-Trace: 1148213278 news.skynet.be 16885 81.240.108.10:1560
X-Complaints-To: usenet-abuse@skynet.be