is it possible to have different kind of results when declaring property in delphi class?
Example:
property month: string read monthGet(
string) write monthSet(
integer);
In the example, I want, with the property month, that when I : READ, I get a string; SET, I set an integer;
AsString
. If you have more recent version of Delphi, you can define a type likeTMonth
and write helper functions for different sorts of casting. Which version of Delphi do you have ? – Trisaproperty XYZ
is to define the getter asfunction GetXYZ: SomeType
and the setter asprocedure SetXYZ(const Value: SomeType)
. – BurierVariant
type. – Colleague