"Please enter no more than 256 characters."
-
I am writin a simple ODBC application in Visual C++ to manipulate data from an Access database file. I have a memo field in the Access DB and a multiline edit control in the app. When I try to write a larger text (more than 256 symbols), and try UpdateData(), I get the following error message: "Please enter no more than 256 characters." I tried to set the control's max. text limit by calling CEdit::SetLimitText(64000) for example, but it did not work... If you have any clue, please respond asap... Thanks! "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
I am writin a simple ODBC application in Visual C++ to manipulate data from an Access database file. I have a memo field in the Access DB and a multiline edit control in the app. When I try to write a larger text (more than 256 symbols), and try UpdateData(), I get the following error message: "Please enter no more than 256 characters." I tried to set the control's max. text limit by calling CEdit::SetLimitText(64000) for example, but it did not work... If you have any clue, please respond asap... Thanks! "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
Vladimir Georgiev wrote: If you have any clue, please respond asap... Looks like you have set a DDX limit on the edit control. Verify this using class wizard if you are using VC++ 6.0, if VC++.NET check the DDX message map Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Vladimir Georgiev wrote: If you have any clue, please respond asap... Looks like you have set a DDX limit on the edit control. Verify this using class wizard if you are using VC++ 6.0, if VC++.NET check the DDX message map Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
Nishant, I am using VC++ 6.0. I have not set any limit (Maximum Characters box in "Member Variables" tab). this field is empty. Is this the correct place I am looking in? If you have any other idea, please let me know... "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
Nishant, I am using VC++ 6.0. I have not set any limit (Maximum Characters box in "Member Variables" tab). this field is empty. Is this the correct place I am looking in? If you have any other idea, please let me know... "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
Can you post more code? The fact that you get this mesgbox only when you call UpdateData was what prompted me to think that it is a DDX check. With the existing info I dont really have any other smart ideas. Perhaps more code will make things clearer. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Can you post more code? The fact that you get this mesgbox only when you call UpdateData was what prompted me to think that it is a DDX check. With the existing info I dont really have any other smart ideas. Perhaps more code will make things clearer. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
Here is the function and the place it fails: void CContactsView::OnSave() { UpdateData(true); //---------------> ERROR HERE! m_pSet->AddNew(); if (m_pSet->CanUpdate()) { m_pSet->Update(); } if (!m_pSet->IsEOF()) { m_pSet->MoveLast(); } m_pSet->Requery(); UpdateData(false); } "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
Here is the function and the place it fails: void CContactsView::OnSave() { UpdateData(true); //---------------> ERROR HERE! m_pSet->AddNew(); if (m_pSet->CanUpdate()) { m_pSet->Update(); } if (!m_pSet->IsEOF()) { m_pSet->MoveLast(); } m_pSet->Requery(); UpdateData(false); } "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
Vladimir Georgiev wrote: UpdateData(true); //---------------> ERROR HERE! Maybe you should set a DDX limit to not get the default limit? Just an idea...
-
Here is the function and the place it fails: void CContactsView::OnSave() { UpdateData(true); //---------------> ERROR HERE! m_pSet->AddNew(); if (m_pSet->CanUpdate()) { m_pSet->Update(); } if (!m_pSet->IsEOF()) { m_pSet->MoveLast(); } m_pSet->Requery(); UpdateData(false); } "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
Vladimir Can you also post your DDX message maps? Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
Vladimir Georgiev wrote: UpdateData(true); //---------------> ERROR HERE! Maybe you should set a DDX limit to not get the default limit? Just an idea...