Show Bid Request
Find all Procedure in a Vbp/Vbg using Regular expression
Bid Request Id: 23470
|
|
|
Posted by: |
Herve (1 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Above Average - 25.00%
|
Posted: |
Aug 2, 2002 9:19:23 AM EDT
|
Bidding Closes: |
Aug 16, 2002 9:38:00 AM EDT
|
Viewed (by coders): |
222 times
|
Deadline: |
8/19/2002
TIME EXPIRED
|
|
|
|
Description:
Hello,
I need a very little piece of software to explore a Vbp/Vbg file that will be able to find and display all Subs/Functions included a Visual Basic Project using regular expression. This search will have to work in every configuration of the declaration of course.
Here is a starting point for the query: Pattern for RegExp Query: "(Public|Private|( Friend*))( Static)* (Sub|Function) (\w+)(\(([ !-~]*)\)([ !-~]*))([^\v]*?)End (Sub|Function)")
This query doesn't work for Sub/Function defined on mutiple lines e.g.:
Private Function mstrGet_Between_Seperators(ByVal vstrString As String, _ ByVal vstrFirst As String, ByVal vstrSecond As String) As String
It doesn't work if scope is omitted either.
I'm rushing...I've got no time to do it myself. I'm not interested for a proposal that will use Extensibility of VB. It's easy money for a Pro !
Best Regards
Herve
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
Os : Win98/NT/2000
Must be 100% finished and received by buyer on:
Aug 19, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$75 (USD)
|
Aug 3, 2002 9:15:38 AM EDT
|
10
(Excellent)
|
|
|
Hi,
Just accept the bid and rest assure!
Thanks and kind regards, GuruVB |
|
|
|
|
N/A
|
Aug 5, 2002 9:54:21 AM EDT
|
10
(Excellent)
|
|
|
Hi Herve,
Here is the logic: 1. I will use Microsoft Lib for regular expression.(regular expression lib)
2. About the _ in function definition:
- When we reading the Vb files at that time just replace _ and VBCrlf with space and we have the single line function, which gets evaluated easily.
3. About the scope: If you look at the regular expression the test string or the data needs the scope. If scope is not defined then with some VB parser I will add the scope to the result string/ data dynamically and then we can process that string for evaluation.
Seems that you are developer i think this is more that enough to get this project.
Just TRUST me!
Thanks and kind regards, GuruVB Microsoft Certified Solution Developer. PS: Can show you the DEMO, but I think no need of it.
|
|
|
|
|
|