?
Solved

Passing params to MDI sheet

Posted on 1997-03-30
1
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
sperling earned 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

649 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