GetVieldValue() with Empty Filed
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: GetVieldValue() with Empty Filed

  1. #1
    Join Date
    Aug 2009
    Posts
    68

    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,,,,

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,545

    Re: GetVieldValue() with Empty Filed

    1. "Empty" or Null?
    2.Show your actual code producing error. What error?
    Victor Nijegorodov

  3. #3
    Join Date
    Jun 2006
    Posts
    644

    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

  4. #4
    Join Date
    Aug 2009
    Posts
    68

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center