Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Limit character count in string column?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Limit character count in string column?

 Post Reply Post Reply
Author
Message
AndyD View Drop Down
Newbie
Newbie
Avatar

Joined: 18 September 2007
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyD Quote  Post ReplyReply Direct Link To This Post Topic: Limit character count in string column?
    Posted: 18 September 2007 at 12:59pm
Is there any simple or reasonable way to limit the number of characters that can be typed into a string column in a report?
 
Andy
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 5:06pm
Use EditOptions:


CXTPReportColumn* pColumn = wndReport.AddColumn(new CXTPReportColumn(...));
pColumn->GetEditOptions()->m_nMaxLength = 10;


--
WBR,
Serge
Back to Top
AndyD View Drop Down
Newbie
Newbie
Avatar

Joined: 18 September 2007
Location: Canada
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyD Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 6:04pm
Thanks! That was too easy. We did trip over the member variable name m_nMaxLength in the docs but could only find it as a member of CXTHexEdit.

Andy
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.