![]()  | 
 
FlatEdit Numeric Pattern Generator | 
 
    Post Reply  
   | 
  
| Author | |
   
   jpbro  
   
   Senior Member  
   Joined: 12 January 2007 Status: Offline Points: 1357  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: FlatEdit Numeric Pattern GeneratorPosted: 28 October 2008 at 11:35pm  | 
 
| 
   
    
   JSram and I have been trading some regex patterns for use with the FlatEdit control to support various numbering requirements. See this thread: https://forum.codejock.com/forum_posts.asp?TID=12541 
   
  I decided to try and create some code that would automatically generate the regex pattern for an arbitrary range of values and decimal places so that it would be easy to use in a variety of situations (only handles positive numbers for now). This is probably the scariest code that I've written in a while, but in my limited testing so far, it does seem to work. Feel free to try the demo and use/modify the code in any way you like. Comments, corrections, improvements & questions are welcome of course! VB6 source & Demo exe: uploads/20081028_233529_FlatEditPattern.zip  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 
   
  Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6  | 
 |
![]()  | 
 |
   
   ijwelch  
   
   Senior Member  
   Joined: 20 June 2006 Status: Offline Points: 262  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 July 2009 at 1:22am | 
 
| 
   
    
   Thanks. This is useful.
    
   
   | 
 |
| 
   
     
     ExtremeSuitePro 12.1.1
 
   
  WinXP SP3  | 
 |
![]()  | 
 |
   
   jpbro  
   
   Senior Member  
   Joined: 12 January 2007 Status: Offline Points: 1357  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 July 2009 at 5:59pm | 
 
| 
   
    
   I'm glad to you found it useful! Sometimes I'm not sure if anyone ever visits this part of the forum, so it's good to see someone got some use out of it ;)
    
   
   | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 
   
  Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6  | 
 |
![]()  | 
 |
    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  |