You are not logged in.
Pages: 1
Hi arnaud,
VariantToText shall, according to doc, return false, if the variant ist empty or null false, otherwise it shall return true.
Following snippet returns false, though.
uses mormot.core.text;
var
T: UTF8String;
begin
Writeln(VariantToText(true, T));
Writeln(T);
end.
In TRttiProp.SetValue this leads to not assigning a true-boolean value to a property.
Regards,
Daniel
Offline
It is a wrapper around VariantToUtf8() so
// - returns TRUE if the V value was a text, FALSE if was not (e.g. a number)
But of course, this is not what was documented, and what you expected.
Please try
https://github.com/synopse/mORMot2/commit/4f9a97ef
Offline
Pages: 1