Board index » cppbuilder » Reading RecordStatus on ADODataSet

Reading RecordStatus on ADODataSet


2005-10-15 10:48:47 PM
cppbuilder73
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

Try convert both to int.
//------------------------------------------
Regards,
Vassiliev V. V.
www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Nerio" < XXXX@XXXXX.COM >сообщи?сообщила ?новостях следующе?
Quote
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

int(ADODataSet1->RecordStatus) gives 'cannot cast from TRecordStatus to int'
Thanks
Nerio
"Viatcheslav V. Vassiliev" < XXXX@XXXXX.COM >ha scritto nel
messaggio news:43512f7d$ XXXX@XXXXX.COM ...
Quote
Try convert both to int.

//------------------------------------------
Regards,
Vassiliev V. V.
 

{smallsort}

Re:Reading RecordStatus on ADODataSet

RecordStatus is a Set, therefore...
if(ADODataSet1->RecordStatus.Contains(rsModified))
...
"Nerio" < XXXX@XXXXX.COM >wrote in message
Quote
int(ADODataSet1->RecordStatus) gives 'cannot cast from TRecordStatus to
int'
Thanks
Nerio

"Viatcheslav V. Vassiliev" < XXXX@XXXXX.COM >ha scritto nel
messaggio news:43512f7d$ XXXX@XXXXX.COM ...
>Try convert both to int.
>
>//------------------------------------------
>Regards,
>Vassiliev V. V.