[Resolved]Re: Problem accessing text data over 256 characters
Yes, this is the solution. I was able to save about 1000 characters to an
Oracle LongVarChar field.
"nmon10egro" <email@example.com> wrote:
>"Elizabeth" <firstname.lastname@example.org> wrote:
>>I am having problems accessing text data over 256 characters in an Oracle
>>database. I used CDatabase to connect to the database. I created a class
>>from CRecordset and another class from CRecordview to manipulate the data.
>> When I tried to save the text (now has more than 256 char after editing)
>>back to the database, the error message says exceeding 256 characters.
> If you're using RFX_Text() to map your CString variable to the table
>then you have to pass a 3rd parameter as the maximum length. By default
>it is 255. So it would look like the following in your code:
>void CElizabeth'sRecordView::DoFieldExchange(CFieldExchange* pFX)
> RFX_Text(pFX, _T("[Key]"), m_Key, 1000 ); // NRM: That is, if 1000 is
>your max length for that field.
> Good luck!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL