Using delphi 7:
- How can I add an integer to the object portion of a stringlist item,
using
AddObject
? - How can I retrieve the integer back from a object property of stringlist item?
- How do I free all objects and list when done?
Using delphi 7:
AddObject
?
Q:
How can i add an integer to the object portion of a stringlist item, using AddObject?
A: Just cast the integer value to
TObject
Q:
How can a retrieve the integer back from a object property of stringlist item?
A: Cast to integer the Object Value
Q:
How do i free all objects and list when done?
A: You don't need free the object list, because you are not assigning memory. so only call the
Free
procedure of theTStringList
.Try this sample app