Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Range and length validation for items?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Range and length validation for items?

 Post Reply Post Reply
Author
Message
petery View Drop Down
Newbie
Newbie


Joined: 03 December 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote petery Quote  Post ReplyReply Direct Link To This Post Topic: Range and length validation for items?
    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
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
petery View Drop Down
Newbie
Newbie


Joined: 03 December 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote petery Quote  Post ReplyReply Direct Link To This Post 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
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.219 seconds.