Print Page | Close Window

Range and length validation for items?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=12851
Printed Date: 27 November 2024 at 11:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Range and length validation for items?
Posted By: petery
Subject: Range and length validation for items?
Date Posted: 03 December 2008 at 5:38pm
Hello,
Please forgive me if this is a newbie question but is there range validation for numeric and double fields and input length validation for string fields?

Thanks for your time,

Peter


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: C# for .NET 2.0



Replies:
Posted By: nighthawk
Date Posted: 01 February 2009 at 6:43pm
I think the only way to set a range limit for a long is if you add a spin or slider control which has a min and max setting.

I would definitely like to see a min/max setting for doubles as well as a max length setting for strings.


-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0


Posted By: Aaron
Date Posted: 02 February 2009 at 12:52am
Originally posted by nighthawk nighthawk wrote:

[...]
I would definitely like to see a min/max setting for doubles as well as a max length setting for strings.
 
Hi,
 
Maxlenght for string is already available
 
Item.ValueMetrics.MaxLength = 5 will prevent user from entering more than 5 chars.
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: nighthawk
Date Posted: 02 February 2009 at 5:33pm
I did not know about the length control in the ValueMetrics.  Thanks for letting me know.

-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0


Posted By: petery
Date Posted: 03 February 2009 at 3:20pm
The MaxLength field doesn't seem to be in version 9.81.

-------------
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2
Language: C# for .NET 2.0



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