🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2716

I implement all event in my Form, cannot catch that Exception

#2716
From: Wu JianHua
Date: Sat, 12 Apr 2003 15:08
37 lines
2118 bytes
Hi all,
I implement all importmant controls event i can do in my form,
like Datasource, TAdoQuery, TAdoConnection. I test them one by one.
all event they have are overrided as follows:
...
    if ( myEdit->Text.trim() == "-" )
        ShowMessage( "this is control event name." );
...
I still cannot catch that Exception:
    "-" is not a valid floating point value for fiedl "xxxxxx".
please help me.

Thanks for advance.

Wu JianHua.


"Wu JianHua" <wujianhua2000@hotmail.com> д����Ϣ����
:3e967ac0@newsgroups.borland.com...
> Hi all,
>
> I use TAdoTable/TAdoQuery and Oracle database,
> some fields are declared like Number(12,3) for money.
> DBEdit controls are used for these fields.
> Through xxxxxxKeyPress(...), I can control letters inputed.
> But you can still only input "-" or "+" as field value
> and then move focus to another DBEdit or something else.
> I implement BeforePost() event too, but still cannot catch DatabaseError
> Exception.
> Exception pops up :
> "-" is not a valid floating point value for fiedl "xxxxxx".
> please help me catch this exception.
>
> Regard.
> Wu JianHua.
>
>
Technical Details
Message-ID: <3e982c28@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e967ac0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,27df5231496d38a6
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-12 08:12:28 PST
From: "Wu JianHua" <wujianhua2000@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e967ac0@newsgroups.borland.com>
Subject: I implement all event in my Form, cannot catch that Exception
Date: Sat, 12 Apr 2003 23:08:04 +0800
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 61.163.228.70
Message-ID: <3e982c28@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050160168 61.163.228.70 (12 Apr 2003 08:09:28 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail