Steve
You could also try using a class method that creates an instance of the form
and pass any parameters in the call to that method.
eg:
.
.
.
Public
class procedure Execute(aFrame : TFrame);
.
.
.
class procedure TfrmBuild.Execute(aParameter : someType);
begin
with TfrmBuild.Create(nil) do
begin
FormParameter := aParameter;
// Pre show form stuff ....
ShowModal;
// Post close form stuff ....
Free;
end;
end;
I use this a lot for modal forms and find it quite tidy.
Paul Lowman
Lowman Consulting Ltd.
Embedded Systems & Software
[EMAIL PROTECTED]
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"