FlatEdit, Pattern and IsValid bug? |
Post Reply |
Author | |
JSram
Groupie Joined: 22 October 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
Posted: 15 September 2008 at 7:08am |
How is IsValid supposed to be used? It appear to always evaluate to False
This is what I have tried: FlatEdit1.Pattern = "\d*" I test it in the FlatEdit1_Change event but no matter if I enter a digit or letter like "a" it always evaluate to False v12.0 |
|
JSram
Groupie Joined: 22 October 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
|
Over a month and no response, so here we go again.
Can someone from codejock confirm this bug and if it will get fixed or not. To verify this just try the 12.0.2 sample code for Flat Edit and "Text with Pattern (Number only)" - anything can be typed intot he box NOT just numbers only. |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Hi JSram,
I'm using the 12.1 beta, but when I use th pattern \d* the IsValid property returns true for any amount of digits (0-9) entered. I can still enter invalid characters, but then the FlatEdit text is underlined in red, and the IsValid property returns False. Maybe it was fixed for 12.1? |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Its designed behavior.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
JSram
Groupie Joined: 22 October 2004 Status: Offline Points: 42 |
Post Options
Thanks(0)
|
Well it appear I got it a bit wrong intially and appearently it works when tested in FlatEdit_Validate() event, which is logical.
What doesn't work in the 12.0.2 version though is the marking of none matched characters typed in, but this appear to been fixed in 12.1 and I assume 12.0.3 if there will be one. I have applied for the beta now anyhow to see how and what comes about. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |