Login
Products
Sales
Support
Downloads
About
Home
»
Technical Support
»
Elevate Web Builder Technical Support
»
Support Forums
»
Elevate Web Builder General
»
View Thread
View Thread
The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Exit statement in constructor
Mon, Jan 28 2019 1:59 AM
Permanent Link
Michael Dreher
When applying an exit statement in a constructor I get a runtime
error. Example:
type
TMyClass = class(TObject) public
constructor Create; override;
end;
implementation
constructor TMyClass.Create;
begin
inherited Create;
exit; // <--- "$r" is undefined
end;
initialization
TMyClass.Create;
Michael Dreher
Tue, Jan 29 2019 11:20 AM
Permanent Link
Tim Young [Elevate Software]
Elevate Software, Inc.
timyoung@elevatesoft.com
Michael,
<< When applying an exit statement in a constructor I get a runtime error. >>
Thanks, I'll check it out.
Tim Young
Elevate Software
www.elevatesoft.com