<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Is there any way to override the type of a property? As an example,
if I have written a list class:<br>
<br>
<font face="Courier New, Courier, monospace">type<br>
tList = class (tObject)<br>
private<br>
t_current : tObject;<br>
t_items : array of tObject;<br>
public<br>
property Current : tObject read t_current write
t_current;<br>
end;</font><br>
<br>
(this example is clearly not complete) and I want to create a
descendant type that uses a different object, without worrying about
typecasting. Is there a way to override Current? I tried generics,
but using such renders me unable to access the list items'
properties, making it impossible to sort the list. <br>
</body>
</html>