Hi,

I am trying to create, at run time, a number of instances of a TTreeView.  I have
created a class of this type and I will add some methods to this.  I can create this
in one unit and, when I press a button on my form, things seem to work but I 
cannot get this new object to display.  The code that I have for the button click is

procedure TForm1.Button1Click(Sender: TObject);
var
  MyList1, Q: PMyList;
begin
  New(Q);
  MyList1 := Q;
  MyList1.Visible := True;
end;

The MyList1.Visible line fails with an access violation and I do not know what
I am doing.  Please help me.

Chrissy.

---------------------------------------------------------------------------
    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"

Reply via email to