Working in Delphi7 just now, I noticed that not only a VarIsEmpty
function exists, but also a VarIsEmptyParam
.
Since the help of Delphi does not give much explanation:
VarIsEmptyParam returns true if the given variant represents an unassigned optional parameter.
If the variant contains any other value, the function result is false.
I was just wondering if anyone has used this function, and if so, how this function is meant to be used.
EmptyParam
has a variant type ofvarError
with an error value ofVar_ParamNotFound
, whereas an empty variant is one with a variant type ofvarEmpty
. Two completely different kinds of data, just with similar names. – Butanol