Hi,
I am retrieving my DB [Oracle] values and setting them in the
MyRS::DoFieldExchange(CFieldExchange* pFX) function. One of these
records is a Long datatype and could be "Null" in the DB table.
The issue is when the DB value is retrieved it is fine for all
integers but for a "Null" value it returns a junk long value
[1246576928, always] and not a pre-defined value, say.
How do I ensure that for DB Null values it returns me a pre-defined
value? Is the only way out to have my own function that overrides the
MFC's RFX_Long(...) method where-in I handle this [as given in
dbrfx.cpp]? If yes, what should the condition be.
Any pointers will be appreciated.
TIA.
Cheerz,
Denzil