Pointers and string lists?
From: J West (jimw_at_fluffypaws.co.uk)
Date: 12/29/04
- Next message: J West: "Re: Running a procedure every x seconds"
- Previous message: Craig Reynolds: "Re: passing multiple parameters to an application via windows explorer"
- Next in thread: Maarten Wiltink: "Re: Pointers and string lists?"
- Reply: Maarten Wiltink: "Re: Pointers and string lists?"
- Reply: Ian Hinson: "Re: Pointers and string lists?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Dec 2004 13:11:58 -0000
I have a TStringList containing objects of type TpfDCSupplier
I need to add a pointer to each of these objects into a corresponding data
property of a TTreeNode
Could anyone tell me how I can do this?
tv1.Items.AddObject(tv1.Items[0], p.SupplierName,
@TpfDCSupplier(fList.Objects[x]));
doesn't work as this points to the actual function of the Objects property
rather than the object itself.
casting the object to the local variable and adding the pointer to this
doesn't work either as the pointer points to the local variable rather than
the object in the object list.
Any ideas would be most gratefully received.
Regards
James West
- Next message: J West: "Re: Running a procedure every x seconds"
- Previous message: Craig Reynolds: "Re: passing multiple parameters to an application via windows explorer"
- Next in thread: Maarten Wiltink: "Re: Pointers and string lists?"
- Reply: Maarten Wiltink: "Re: Pointers and string lists?"
- Reply: Ian Hinson: "Re: Pointers and string lists?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|