Hi, I want to know whether it is possible to know the actual class name from the Abstract Class? For example, I have
TListBox where I can add to it through the
TStrings returned by
Items method through the following code:
TForm1 = class(TForm)
ListBox1: TListBox;
private
procedure SomeProcedure;
end
procedure TForm1.SomeProcedure;
begin
ListBox1.Items.Add('abc') // this works because TListBox1.Items is a TStrings
// I want to know the actual type of ListBox1.Items, for code understanding purposes
end
In this case, I know TStrings is implemented by TStringList through reading the documentation. But is there a way to know it without reading the documentation or the whole the code base? Note: this is possible in PHP through the get_class function
https://www.php.net/manual/en/function.get-class.php..
In other words, I want to know what implements
TStrings?
Please don't ask me to read the documentation of
TStrings. Because I want to do it for other scenario where the documentation is poor/non-existent.
Thank you in advance for your help!