How to use Condition in Delphi Breakpoint properties

I found that a nested loop fails when some particular condition is reached, somehow when I = 1, J = 3 and k = 5

I tried to right click on the breakpoint and in the condition I set

(I = 1) and (J = 3) AND (K = 5)

anyway the breakpoint doesn't stop...

What is wrong?

Answers


I've just tried that in D2007 and it works fine. what version are you using?

procedure TForm85.FormClick(Sender: TObject);
var i,j,k : integer;
    z:integer;
begin

  for i := 0 to 10 do
  for j := 0 to 10 do
  for k := 0 to 10 do
  BEGIN
    z := z + i * j * k; // breakpoint on this line.
  END;

  ShowMessage(IntToStr(z));
end;

Have you considered that the breakpoint may not be reached because the condition is not being met?


Need Your Help

python tkinter treeview right click (Button-3) event to select item in treeview

python treeview tkinter

Using Python 3.2 and tkinter. How do you make the Button-3 (right click) select the item in a Treeview widget that the mouse cursor is hovering over? I basically want the Button-3 event to select the

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.