Solved

Passing params to MDI sheet

Posted on 1997-03-30
1
165 Views
Last Modified: 2010-04-06
When creating an MDI sheet at runtime, how do I pass it parameters which can be used in the OnCreate() event?
0
Comment
Question by:ChrisGin
1 Comment
 
LVL 3

Accepted Solution

by:
sperling earned 50 total points
ID: 1335079
In your child form source:

type
  TMDIChild = class(TForm)
  .
  .
  public
    constructor CreateWithParams(AOwner : TComponent; AParameter : STRING);
    .
 

constructor TMDIChild.CreateWithParams(AOwner : TComponent; AParameter : STRING);
begin
  inherited Create(AOwner);
  // Do your OnCreate code here instead.
end;

Regards,

Erik.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now