RE: [lazarus] Lazarus and Delphi: boolean expression expected, but got untyped

2006-12-05 Thread Andrew Brunner
that. Does it? -Original Message- From: Vincent Snijders [mailto:[EMAIL PROTECTED] Sent: Saturday, December 02, 2006 3:38 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Lazarus and Delphi: boolean expression expected, but got untyped TControl has a protected method 'Changed'. So if you

Re: [lazarus] Lazarus and Delphi: boolean expression expected, but got untyped

2006-12-05 Thread Vincent Snijders
and Delphi: boolean expression expected, but got untyped TControl has a protected method 'Changed'. So if you used this code in a method of TForm and Changed is a global variable, then it is out of scope. Vincent

[lazarus] Lazarus and Delphi: boolean expression expected, but got untyped

2006-12-02 Thread Dave Coventry
Hi, I have a boolean called changed which I use to prevent the user from closing down if he hasn't saved his work. var Changed : boolen; if Changed then begin if MessageDlg('Current Document not saved. Continue?', mtConfirmation, [mbYes, mbNo], 0) mrYes then exit; end; I get an

Re: [lazarus] Lazarus and Delphi: boolean expression expected, but got untyped

2006-12-02 Thread Dave Coventry
My mistake. I was obviously using a reserved word. It maybe worked in Delphi because I misspelled it...:( Dave Coventry wrote: Hi, I have a boolean called changed which I use to prevent the user from closing down if he hasn't saved his work. var Changed : boolen; if Changed then begin

Re: [lazarus] Lazarus and Delphi: boolean expression expected, but got untyped

2006-12-02 Thread Vincent Snijders
Dave Coventry schreef: Hi, I have a boolean called changed which I use to prevent the user from closing down if he hasn't saved his work. var Changed : boolen; if Changed then begin if MessageDlg('Current Document not saved. Continue?', mtConfirmation, [mbYes, mbNo], 0) mrYes