In a VCL application tt avoid
Could not convert variant of type (Null) into type (OleStr)
errors and because i want that Null variants
to be automatically converted to empty strings, 0 integers, or false booleans
(as specified in one of the answers to this question)
i set
uses System.Variants
//[...]
NullStrictConvert := False;
Is it ok to do this in the OnCreate
method of the main datamodule of a VCL app? Is this setting global? I can't find this info in the official documentation.
From testing it seems that setting it once it is enough, but i'd like to have an extra reference.