-
September 5th, 2009, 10:44 AM
#1
GetVieldValue() with Empty Filed
i tried to built aplication using Visual C++ 6.0, ODBC, CRecordset.
i have an error code caused GetFieldValue function did not support the Empty Set.
any solution ??
thanks for every thinks,,,,
-
September 6th, 2009, 09:48 AM
#2
Re: GetVieldValue() with Empty Filed
1. "Empty" or Null?
2.Show your actual code producing error. What error?
Victor Nijegorodov
-
September 6th, 2009, 12:53 PM
#3
Re: GetVieldValue() with Empty Filed
Hi,
Here is the MSDN reference for the documentation of the method.
From what u have posted here it seems that ur recordset is null. Or u might be passing an null reference to one of the overloads of GetFieldValue() method here. Another mistake that is commonly made with this method is, passing of the wrong parameters altogether. I mean, make sure you are passing the correct name or index for the field. Some times the index and the data types won't match. Make sure to put the database connection open and close code in try...catch block.
Bhushan
-
September 7th, 2009, 03:45 AM
#4
Re: GetVieldValue() with Empty Filed
thanks for your reply....
i solved my problem. .
1. its empty record
i use getrecordcount() to solve it, i use if (record > 0) then........
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|