How to check for DBNull in C++ - ADO recordset fields? -
i trying retrieve info sql server via ado in c++ , how can check null values recordset fields? thre no isnull() function?
testing dbnull in c++ ado record set involves checking fieldpointer->value
property, of type variant
. test null variant values, check vt
field, null values vt_null
.
so test dbnull, check fieldpointer->value.vt == vt_null
c++ ado
No comments:
Post a Comment