Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - FlatEdit, Pattern and IsValid bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FlatEdit, Pattern and IsValid bug?

 Post Reply Post Reply
Author
Message
JSram View Drop Down
Groupie
Groupie


Joined: 22 October 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote JSram Quote  Post ReplyReply Direct Link To This Post Topic: FlatEdit, Pattern and IsValid bug?
    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
Back to Top
JSram View Drop Down
Groupie
Groupie


Joined: 22 October 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote JSram Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2008 at 3:28am
Its designed behavior.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
JSram View Drop Down
Groupie
Groupie


Joined: 22 October 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote JSram Quote  Post ReplyReply Direct Link To This Post 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.

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.156 seconds.