?
Solved

MESSAGE DIALOG BOX

Posted on 1998-01-12
2
Medium Priority
?
229 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
[X]
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
2 Comments
 
LVL 2

Accepted Solution

by:
mvz121697 earned 200 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

Industry Leaders: 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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

718 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