🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TWideStringField in BDS 2006

#456
From: Oleg
Date: Tue, 25 Apr 2006 07:56
19 lines
1409 bytes
 
Hi,
I have a problem to check value of field in OnValidate event whether the 
field's type is TWidwStringField.
I am using MS access 2000 , C++ Builder 2006 under Windows XP. I get error:
Exception class EAccessViolation with message 'Access violation at address 
7714CA1E in module 'oleaut32.dll'. Read of address 00343000
 Previously I was using C++ Builder 5, it worked.
The code is as follows:

void __fastcall TForm2::ADOTable1textdate1Validate(TField *Sender)
{
     if(Sender->AsString.IsEmpty())
        // TODO
}

Any ideas???
Regards,
Oleg
Technical Details
Message-ID: <444dc753$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,9914ecd3ba014367,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Oleg" <olegl@benarit.com>
From: "Oleg" <olegl@benarit.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: TWideStringField in BDS 2006
Date: Tue, 25 Apr 2006 09:56:20 +0200
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.90.160.116
Message-ID: <444dc753$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145947987 62.90.160.116 (24 Apr 2006 23:53:07 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail