引用单元:Variants
函数:VarIsEmpty、VarIsNull
原型:
//VarIsNull 判断Variant变量是否包含一个Null值,例如数据库原始字段值Null
function VarIsNull(const V: Variant): Boolean;
begin
Result := FindVarData(V)^.VType = varNull;
end;
//VarIsEmpty 判断Variant 变量是否为空
function VarIsEmpty(const V: Variant): Boolean;
begin
Result := FindVarData(V)^.VType = varEmpty;
end;
引用Variants 后,其实还有两个函数也是可以使用的:
function Unassigned: Variant; // 未赋值的标准常数
function Null: Variant; // 空 标准常数
来源:https://www.cnblogs.com/guorongtao/p/12909201.html
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.044534206390381 seconds