🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
4 messages
4 total messages Started by Nerio Sat, 15 Oct 2005 14:48
Reading RecordStatus on ADODataSet
#608
Author: Nerio
Date: Sat, 15 Oct 2005 14:48
7 lines
1132 bytes
Hi, why
if(ADODataSet1->RecordStatus == rsModified) ...
results in the compiler error
[[  operator == not implemented in type TRecordStatusSet  for argument of 
type TRecordStatus]] ?
Many thanks
Nerio 
Re: Reading RecordStatus on ADODataSet
#609
Author: Viatcheslav V. Vassiliev
Date: Sat, 15 Oct 2005 16:36
20 lines
1620 bytes
Try convert both to int.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Nerio" <ne_serzanti@tin.it> �������/�������� � �������� ���������: 
news:4351162c@newsgroups.borland.com...
> Hi, why
> if(ADODataSet1->RecordStatus == rsModified) ...
> results in the compiler error
> [[  operator == not implemented in type TRecordStatusSet  for argument of 
> type TRecordStatus]] ?
> Many thanks
> Nerio
> 
Re: Reading RecordStatus on ADODataSet
#611
Author: Nerio
Date: Sun, 16 Oct 2005 14:15
11 lines
1260 bytes
int(ADODataSet1->RecordStatus) gives 'cannot cast from TRecordStatus to int'
Thanks
Nerio

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> ha scritto nel 
messaggio news:43512f7d$1@newsgroups.borland.com...
> Try convert both to int.
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
Re: Reading RecordStatus on ADODataSet
#612
Author: Mark Guerrieri
Date: Tue, 18 Oct 2005 15:00
22 lines
1645 bytes
RecordStatus is a Set, therefore...

if(ADODataSet1->RecordStatus.Contains(rsModified))
...


"Nerio" <ne_serzanti@tin.it> wrote in message
news:43526027@newsgroups.borland.com...
> int(ADODataSet1->RecordStatus) gives 'cannot cast from TRecordStatus to
int'
> Thanks
> Nerio
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> ha scritto nel
> messaggio news:43512f7d$1@newsgroups.borland.com...
> > Try convert both to int.
> >
> > //------------------------------------------
> > Regards,
> > Vassiliev V. V.
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads