On Thu, 8 Oct 2020 13:04:43 +0200 (CEST), Michael Van Canneyt via fpc-pascal <fpc-pascal@lists.freepascal.org> wrote:
>> OK, >> is it possible to define the TMyRecord with default values so that >> when I do Default(TMyRecord) it will be non-zero defaults written >> instead of zeros? > >No. You will always need code for that. OK, I have now added code that sets those fields that should have non-zero values to the default on startup. All others are handled by the Default() call. Works fine. Thank you for your clarification! -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal