[fpc-pascal] Variants - Auto-convert nulls
African Wild Dog
paintedlycaon at gmail.com
Mon Nov 7 15:40:45 CET 2016
Hello,
I need the variant type converting automatically null values to the
default value of the target type (e.g False for Booleans, 0 for
Integers/Floats).
I know that i can achieve this by setting the variable NullStrictConvert
(unit Variants) to False. However, this is a global setting and therefore
is not safe using such method.
What would be the best way to solve my problem?
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161107/64ea8f35/attachment.html>
More information about the fpc-pascal
mailing list