azarus] Lazarus 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
__
ing like
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
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 th
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
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