Article View: borland.public.cppbuilder.database.ado
Article #3801Re: DBEdit Question ?
From: Ronnie
Date: Mon, 24 Jun 2002 22:52
Date: Mon, 24 Jun 2002 22:52
30 lines
1659 bytes
1659 bytes
Uros,
You could use a boolean variable in the OnClick events of the buttons (for
example bool bNew = true).
Maybe more convenient is to look at the status of the dataset:
Say your using a T(ADO)DataSet component DS:
if (DS->State == dsEdit) {...}
HTH
--
Ronald Loonstra
CodeFit Applications
www.codefit.nl
"Uros Obradovic" <ouros@hotmail.com> schreef in bericht
news:3d178b8e$1_1@dnews...
> Well, thats almost an answer.
> Now what I need to do is to control this. If I click on NEW RECORD button,
I
> want OnClick properties to be different for DBEdit, but if I dont click on
> this button, I want OnClick properties to be as you shown above.
> How to do that ?
>
> thank
> Uros
>
>
Technical Details
Message-ID:
<3d17a15f_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3d13ce83$1_1@dnews> <3d171fcb$2_2@dnews> <3d178b8e$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,17022894568b684 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-24 15:53:34 PST From: "Ronnie" <r.loonstra@home.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <3d13ce83$1_1@dnews> <3d171fcb$2_2@dnews> <3d178b8e$1_1@dnews> Subject: Re: DBEdit Question ? Date: Tue, 25 Jun 2002 00:52:00 +0200 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 217.121.245.5 Message-ID: <3d17a15f_1@dnews> X-Trace: dnews 1024958815 217.121.245.5 (24 Jun 2002 15:46:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews