The information in this article applies to:
SYMPTOMS
When trying to move to record in a wizard-generated recordset, the following error can occur: You may also see the following TRACE message in the debug output window:
CAUSEThis error occurs when you are trying to access data in a text field that contains more than 255 characters. If you use the AppWizard or ClassWizard to generate your recordset class, the wizard creates a call to the function RFX_Text to transfer data between the database and your member variable. The fourth parameter of this function specifies the maximum allowed length of the data being transferred and the default value of this parameter is 255. RESOLUTIONFor each call to RFX_Text where the field can contain more than 255 characters, add a fourth parameter that is equal to the maximum length of that field. STATUSThis behavior is by design. MORE INFORMATION
Use the AppWizard to create a new MFC project with database support. Use an ODBC data source that contains one or more text fields with data longer than 255 characters. REFERENCESSee the documentation for RFX_Text for more information on this function. Additional query words: kbDSupport truncation rfxtext
Keywords : kbDatabase kbMFC kbODBC kbOracle kbSQLServ kbVC |
Last Reviewed: April 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |