Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Is it possible to change the "Delete Record?" confirmation message?
Tue, Aug 5 2008 11:55 AMPermanent Link

Dave Harrison
When the user tries to delete a row from a grid, I'd like the pop up
confirmation message to say "Delete Directory?" instead of "Delete
Record?" because each record corresponds to a directory on his hard drive.

Is this possible (for this table only)?

TIA
Dave
DBISAM 4.x
Tue, Aug 5 2008 12:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dave,

<< When the user tries to delete a row from a grid, I'd like the pop up
confirmation message to say "Delete Directory?" instead of "Delete Record?"
because each record corresponds to a directory on his hard drive.

Is this possible (for this table only)? >>

Sure, just put the prompt in a BeforeDelete event handler for the table, and
then issue an Abort call if the user does not want to delete the record.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Aug 5 2008 12:35 PMPermanent Link

"Robert"

"Dave Harrison" <daveh_18824@spammore.com> wrote in message
news:E25F7EF3-4BDA-4216-A2B0-3054F8D884E5@news.elevatesoft.com...
> When the user tries to delete a row from a grid, I'd like the pop up
> confirmation message to say "Delete Directory?" instead of "Delete
> Record?" because each record corresponds to a directory on his hard drive.
>
> Is this possible (for this table only)?
>

Set the option dgConfirmDelete to false on the grid, and OnBeforeDelete in
your table do whatever you want.

Robert

> TIA
> Dave
> DBISAM 4.x

Tue, Aug 5 2008 12:55 PMPermanent Link

Dave Harrison
Robert wrote:

> "Dave Harrison" <daveh_18824@spammore.com> wrote in message
> news:E25F7EF3-4BDA-4216-A2B0-3054F8D884E5@news.elevatesoft.com...
>
>>When the user tries to delete a row from a grid, I'd like the pop up
>>confirmation message to say "Delete Directory?" instead of "Delete
>>Record?" because each record corresponds to a directory on his hard drive.
>>
>>Is this possible (for this table only)?
>>
>
>
> Set the option dgConfirmDelete to false on the grid, and OnBeforeDelete in
> your table do whatever you want.
>
> Robert
>

Robert & Tim,
   Worked like a charm, thanks. SmileI thought the original confirmation
message was generated by the table, and not the grid. D'uh.

Dave
Image