Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:54:56+00:00 2026-06-10T02:54:56+00:00

I need to create a descendant of TStringList class, which has the same functionality

  • 0

I need to create a descendant of TStringList class, which has the same functionality as TstringList class, but for each string/object from the list to have an id and subid elements.

Is this possible by inheriting the TStringList class, or I need to create a new class and implement the behavior I need.

LE: I also need the Objects property, so I can not store in the list a pointer to a structure.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:54:56+00:00Added an answer on June 10, 2026 at 2:54 am

    From inspecting the TStringList class source, I think it is possible to inherit the TStringList class directly, by adding another FListIDs: PStringItemListIDs (similar to the FList: PStringItemList) where TStringItemIDs is a record of FID, FSubID: Integer (assuming data type is Integer).

    Next you need to override each TStringList method that involves FList i.e.: Add, Clear, Delete, Insert, etc… where you will handle FListIDs being added or removed.

    Finally create index properties: ID, SubID with getter and setter functions. e.g:

    property ID[Index: Integer]: Integer read GetID write SetID;
    property SubID[Index: Integer]: Integer read GetSubID write SetSubID;
    

    The getter and setter functions will get or set FListIDs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a WP site which will have multiple subjects. Each subject
I basically have a list of object to create, but some of them are
I need to fix a third-party component. This component's class has private variable which
i need create an email list sending to many emails. what is best solution
I need create clone repository. but I do not know where can I get
i need create a variable with parent subclass. Example: Parent Class <?php class parentClass
Need to create a custom DNS name server using C which will check against
I need to create a class with two properties: LogOutput ExceptionOutput These properties (Actions<>)
Alright, so I have a base class which we'll call TFruit . From this
I have create a restful service which returning a List an entity type: [AspNetCompatibilityRequirements(RequirementsMode

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.