#1 2022-05-29 05:04:32

dka1
Member
From: Greece
Registered: 2017-07-25
Posts: 28

docvariant Return value For Unknown Property

Hello,
I need a way to check missing properties so I will use "Exists",
but can I implement an option to return "undefined"
(as javascript return for unknown property) ?

TDocVariantOption has dvoReturnNullForUnknownProperty option
that return null for unknown property else raise an EDocVariant.

Offline

#2 2022-05-29 18:06:50

igors233
Member
Registered: 2012-09-10
Posts: 241

Re: docvariant Return value For Unknown Property

You can request value and check if it's null, undefined.
If you're using TDocVariantData then, GetValueOrNull or GetValueOrEmpty.

Offline

Board footer

Powered by FluxBB