|  | 
| Bug in Pattern Property? | 
| Post Reply   | 
| Author | |
| McKloony   Senior Member     Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |  Post Options  Thanks(0)  Quote  Reply  Topic: Bug in Pattern Property? Posted: 25 May 2008 at 7:08am | 
| 
   I try to set a pattern for a flatedit that allwos only digits from 0-9 an the characters "("  ")"  "+"  "-"  "/"  and  Space$(1) " "
 In the onlinehelp you can read, that "\d*" is Equivalent to [0-9]. This is not correct. The pattern "[0-9]" doesn't work in my sample. The Pattern "0|1|2|3|4|5|6|7|8|9|(|)|+|/|-" only works, if i type in olny one character. So how can i set the correct pattern? | |
| 
     Product: Xtreme SuitePro (ActiveX) 16.2.5 Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 26 May 2008 at 1:13am | 
| 
   Hi,
 Pattern doesn't prevent you add characters - it allows add wave if string not mach pattern. | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| McKloony   Senior Member     Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |  Post Options  Thanks(0)  Quote  Reply  Posted: 26 May 2008 at 1:51am | 
| 
   OK, so how can i set a pattern, that matches the following characters: 0-9 and ( ) / -
 | |
| 
     Product: Xtreme SuitePro (ActiveX) 16.2.5 Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 26 May 2008 at 9:54am | 
| 
   Hi,
 [0-9\(\)/\-]* | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| 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 |