Print Page | Close Window

FlatEdit Numeric Pattern Generator

Printed From: Codejock Forums
Category: General
Forum Name: Visual Basic Code Snippets
Forum Description: Visual Basic Code Snippets
URL: http://forum.codejock.com/forum_posts.asp?TID=12556
Printed Date: 23 November 2024 at 5:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FlatEdit Numeric Pattern Generator
Posted By: jpbro
Subject: FlatEdit Numeric Pattern Generator
Date 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 - 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 - uploads/20081028_233529_FlatEditPattern.zip


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: ijwelch
Date Posted: 17 July 2009 at 1:22am
Thanks. This is useful.

-------------
ExtremeSuitePro 12.1.1
WinXP SP3


Posted By: jpbro
Date 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




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