Subject | RES: [IBO] BeforeDelete Event |
---|---|
Author | Luiz |
Post date | 2012-07-09T20:36:59Z |
Hi,
Use Suysutils.Abort.
Luiz
De: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] Em nome de
Enrico Cima
Enviada em: domingo, 8 de julho de 2012 17:38
Para: IBObjects@yahoogroups.com
Assunto: [IBO] BeforeDelete Event
Hi All,
I have the case that during a BeforeDelete Event into an IB_Query, I check
if the record can be deleted or not.
If the record can't be delete for any project reason (maybe the record has
some other links to be deleted before), how I can cancel the operation at
this step?
void __fastcall TTF_Art_Base::IB_Q_IMMBeforeDelete(TIB_Dataset *IB_Dataset)
{
// ... check existence for example of movements of this Article in the DB
// . if movements existence, don't want to proceed here, is possible to skip
the delete here?
}
How I can do this?
Thanks!
Bye!
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Use Suysutils.Abort.
Luiz
De: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] Em nome de
Enrico Cima
Enviada em: domingo, 8 de julho de 2012 17:38
Para: IBObjects@yahoogroups.com
Assunto: [IBO] BeforeDelete Event
Hi All,
I have the case that during a BeforeDelete Event into an IB_Query, I check
if the record can be deleted or not.
If the record can't be delete for any project reason (maybe the record has
some other links to be deleted before), how I can cancel the operation at
this step?
void __fastcall TTF_Art_Base::IB_Q_IMMBeforeDelete(TIB_Dataset *IB_Dataset)
{
// ... check existence for example of movements of this Article in the DB
// . if movements existence, don't want to proceed here, is possible to skip
the delete here?
}
How I can do this?
Thanks!
Bye!
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]