Print Page | Close Window

FlatEdit, Pattern and IsValid bug?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=12157
Printed Date: 22 November 2024 at 8:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FlatEdit, Pattern and IsValid bug?
Posted By: JSram
Subject: FlatEdit, Pattern and IsValid bug?
Date 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



Replies:
Posted By: JSram
Date Posted: 25 October 2008 at 8:23pm
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.


Posted By: jpbro
Date Posted: 25 October 2008 at 11:24pm
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



Posted By: Oleg
Date Posted: 27 October 2008 at 3:28am
Its designed behavior.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: JSram
Date Posted: 27 October 2008 at 10:21am
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.




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