Sven Barth wrote:

Am 05.12.2016 08:24 schrieb "Dennis" <[email protected] <mailto:[email protected]>>:
>
> In this old statement, I don't need to know the type of aRecord
> but if I want to use Default, I have to know the exact type of the varaible aRecord and pass it to Default(aRecordType) e.g. aRecord := Default(aRecordType) //where var aRecord : aRecordType
>
> Is it possible to use default without knowing the variable type? (it is because sometimes the type get renamed)

No, it's not possible. You'll simply have to rename one more location.

Regards,
Sven


Thanks.
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to