On Tue, 23 Nov 2010, Marco Aurelio Ramirez Carrillo wrote:

Hi.
I'm working witha TTreeview, and trying to assign a object to a
TTreeNode.data property:

<code>
MyTreeNode := myTreeview.add(nil, "MyTreeNode");

// any "TObject" descendant class
MyObject = MyClass.Create();

// all of these, generate a syntax/semantic error:

// no typecasting
MyTreeNode.Data := MyObject;

I do this every day ? What is the error you get ?

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to