Solved

MESSAGE DIALOG BOX

Posted on 1998-01-12
2
221 Views
Last Modified: 2010-04-04
I think this should be fairly easy although I am not sure.  I want to have a message dialog box appear everytime two check boxes are checked at the same time that tells the enduser that by doing this they could be restricting there search.  I have the dialog box however it comes up whether they have one, two, three or however many checkboxes checked.  How can I make this only happen when they have more than one checkbox checked at the same time?  Example would be appricated.  If this is more difficult than 25pts I am open to giving more for a good answer.
0
Comment
Question by:aj85
2 Comments
 
LVL 2

Accepted Solution

by:
mvz121697 earned 50 total points
ID: 1356215
procedure TForm1.Button1Click(Sender: TObject);
var n: integer;
begin
n:=0;
if CheckBox1.checked then Inc(n);
if CheckBox2.checked then Inc(n);
if CheckBox3.checked then Inc(n);
if n>1 then if MessageDlg('Your search is restricted, Continue ?'
  ,mtConfirmation, [mbYes, mbNo], 0) = mrYes then
  begin
       // do the search
  end;
end;

0
 

Author Comment

by:aj85
ID: 1356216
Thank you very much your answer was excellent!  I am increasing your points to 50.

Tony
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
proper way to parse url in delphi 2 162
Virtuailstring tree add node to another virtuailstring tree list 4 104
Intraweb download file link ? 1 108
Working with hours 3 46
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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now