TLocation = class
private
La,
Lo: String;
end;
Actually, I manage to store the information using "AddObject()" method,
_but_ I couldn't retreive it to draw on screen!!!
Any kind of help appreciated...
Regards
Jaboos
LocationIndex:=TListBox1.AddObject('Location 1',Location1);
{that's your location in}
Location1:=TListBox1.Objects[LocationIndex];
{that's your location out}
If your wanting to do that with something other than TObject (say,
TComponent) then the out is different below...
Location1:=TComponent(ListBox1.Objects[LocationIndex]);
{that's your location out}
Vannus.
"Jaboos" <saf...@hotmail.com> wrote in message
news:a99joi$63...@news.emirates.net.ae...