Print Page | Close Window

Limit character count in string column?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=8069
Printed Date: 22 November 2024 at 1:37pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Limit character count in string column?
Posted By: AndyD
Subject: Limit character count in string column?
Date 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



Replies:
Posted By: sserge
Date Posted: 20 September 2007 at 5:06pm
Use EditOptions:


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


--
WBR,
Serge


Posted By: AndyD
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net