BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PrepareDelete method and canceling deletions

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General)
View previous topic :: View next topic  
Author Message
Rodrigo Zabotto
Guest





PostPosted: Sat Sep 23, 2006 12:15 am    Post subject: PrepareDelete method and canceling deletions Reply with quote



Hi, friends,

Is it possible to cancel a deletion in PrepareDelete method?

I want to put a password to delete objects in some classes using the
preparedelete. What´s the Bold command to cancel a deletion?

Thanks for help

Rodrigo
Back to top
Eddy Poullet
Guest





PostPosted: Mon Sep 25, 2006 2:04 pm    Post subject: Re: PrepareDelete method and canceling deletions Reply with quote



Rodrigo Zabotto <rodrigo (AT) isiengenharia (DOT) com.br> wrote:
Quote:
Hi, friends,

Is it possible to cancel a deletion in PrepareDelete method?

I want to put a password to delete objects in some classes using the
preparedelete. What´s the Bold command to cancel a deletion?

Thanks for help

Rodrigo

I believe that you must override the sendquery an trap the
bqMayDelete event.

Eddy
Back to top
Peter Morris [Droopy eyes
Guest





PostPosted: Mon Sep 25, 2006 2:50 pm    Post subject: Re: PrepareDelete method and canceling deletions Reply with quote



I think there is a MayDelete method you can override isn't there?
Back to top
Eddy Poullet
Guest





PostPosted: Thu Sep 28, 2006 8:11 am    Post subject: Re: PrepareDelete method and canceling deletions Reply with quote

"Peter Morris [Droopy eyes software]" <pete (AT) NO_droopyeyes_SPAM (DOT) com> wrote:
Quote:
I think there is a MayDelete method you can override isn't there?

Yes, Pete :

Programmers reference Online
"A programmer can disallow deleting either by overriding the virtual MayDelete function or subscribing to the bqMayDelete query."

Eddy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Model Driven Architecture (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.