[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how do I use IsFieldNull?

Posted on 2000-02-27
2
Medium Priority
?
1,155 Views
Last Modified: 2013-11-20
According to the docs, IsFieldNull takes one parameter, void *pv.   What
does pv want to be pointed at?  The following doesn't work:

CDBVariant     varValue;

m_pRecordSet->GetFieldValue(TableData[0], varValue, SQL_C_SLONG);

if (m_pRecordSet->IsFieldNull(&varValue))
// do something
else
// do something else

Thanks.
0
Comment
Question by:agfk
2 Comments
 
LVL 8

Expert Comment

by:gelbert
ID: 2565573
Check MFC samle Catalog2 in Database section
0
 

Accepted Solution

by:
SDU earned 80 total points
ID: 2581483
You have to use it like that:

if (pRS->IsFieldNull(&pRS->m_Field) )
// do something ;
   else
// do something else

where pRS is your recordet pointer and m_Field is the field you want to test

Regards
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question