Hi All,
Im writing a forcasting application in Delphi7. I have most of it done but need to set some child window attributes from the Main Form.
It is an MDI. The Main Form has control and I want to set a child windows attributes BEFORE IT IS DISPLAYED. But I cannot seem to set the attributed as the compiler says the variable for the child is not yet initialized. How should this be done?
procedure TMyMainForm(...)
Var
Child: TMDIChild;
Begin
// Initialize
Child.m_dtDate := m_MyDate;
// Show
Child := TMDIChild.Create(Application);
End;
End.
Any ideas how to get around this would be greatly appreciated.
Thanks,
Chris