Using delphi 7:
- How can I add an integer to the object portion of a stringlist item,
usingAddObject? - How can I retrieve the integer back from a object
property of stringlist item? - How do I free all objects and list
when done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Q:
How can i add an integer to the object portion of a stringlist item, using AddObject?A: Just cast the integer value to
TObjectQ:
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
Freeprocedure of theTStringList.Try this sample app