Solved

MESSAGE DIALOG BOX

Posted on 1998-01-12
2
226 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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