Codejock Forums Homepage
Forum Home Forum Home > General > Code Snippets > Visual Basic Code Snippets
  New Posts New Posts RSS Feed - FlatEdit Numeric Pattern Generator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FlatEdit Numeric Pattern Generator

 Post Reply Post Reply
Author
Message
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 Topic: FlatEdit Numeric Pattern Generator
    Posted: 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

Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2009 at 1:22am
Thanks. This is useful.
ExtremeSuitePro 12.1.1
WinXP SP3
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: 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

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