Conformation box??

Posted on 2003-03-18
Medium Priority
Last Modified: 2012-05-04
is there a function within delphi for a conformation box?

for example. if in a program I try and delete a record from a database, rather than just delete it I would like a box to appear saying "are you sure you want to do this?"

Best Regards.

Question by:BarryHL
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Accepted Solution

geobul earned 60 total points
ID: 8158496

MessageDlg function
MessageDlgPos function
Application.MessageBox function
windows.MessageBox function
CreateMessageDialog function

Regareds, Geo

Expert Comment

ID: 8158599
this will do it..

if (MessageDlg('Are you sure you'd like to delete the record?'
  , mtConfirmation, [mbYes,mbNo], 0)=mrYes) then
  // Delete record


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question