There are two or more descriptions of properties using the Default directive.
Change the properties description so that only one of the descriptions contains the Default directive.
Class TestClass: Object
d: Array Of Double;
s: Array Of String;
Property Item(i: Integer): Double
Get
Begin
Return d[i];
End Get
Set
Begin
d[i] := Value;
End Set
End Property Item; Default;
Property Text(i: Integer): Double
Get
Begin
Return s[i];
End Get
Set
Begin
s[i] := Value;
End Set
End Property Text; Default;
End Class TestClass;
When the specified code is compiled, the following error is displayed: Class can have only one 'default' property. To resolve the error, delete the Default directive from the description of the Item or Text property.
See also: