vbRoutineBuilder 2.5 First off this code started with Kurt J. Tischer's first http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=40345&lngWId=1 Routine Builder project and has since taken off from there. Hopefully, this will save you a lot of repetitive typing and make your code more uniform and readible. This is actually an improvement on the first authors code that I thought was a great VB Addin. The previous submission by Kurt J. Tischer fail short in its attempt to fully automate the writing of functions for each Routine. Enjoy.
vbRoutineBuilder 2.5
First off this code started with Kurt J. Tischer's first
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=40345&lngWId=1
Routine Builder project and has since taken off from there.
Hopefully, this will save you a lot of repetitive typing and make your code more uniform and readible. This is actually an improvement on the first authors code that I thought was a great VB Addin. The previous submission by Kurt J. Tischer failed short in its attempt to fully automate the writing of functions for each Routine.
This is a VB6 Subroutine and Function Builder Add-In. It's pretty robust and offers data/return type selection (will automatically select data/return types if you used standard prefixes for your arguments e.g. i; integer; obj; object, sng/sgl; single, etc.), optional argument + default value, error handling (On Error Resume Next, Goto Handler, Goto RoutineNameErr, Display or Raise + write to log file. The interface is locked down tight, too. As far as I can tell, no control is enabled or disabled before/after its time. Try it! I've updated this thing to include the actual routine text.
It will automagically check for available code panes when trying to use the Routine Builder in the Form editor or when there are no code panes open.
It also checks all VBProjects and all VBComponents for routines, variables, constants, events, and properties of the same name. If one is found, is displays message to user which Project, Component, Member was found, plus Scope and Type of Member.
I myself fixed a couple of errant bugs:
1. The "Ok" button isn't set as default so us poor keyboard orientated folks need to take our hand off the keyboard to click "Ok"
2. The Text1.Text field in the last tab is set to "Text1" so when the routine is dumped to the code pane it has "Text1" in the middle.
3. If you specify the "Routine Type" as "Function" but don't specify the "Return Type" the function declaration has an "As" statement tacked on the end with nothing behind it. This causes a syntax error within the VB IDE.
Those and a few others that were useful to me. Enjoy.
File List:
Connect.Dsr
19Kb
MRoutineBuilder.bas
3Kb
Readme.txt
2Kb
RoutineBuilder.vbp
2Kb
frmRoutineBuilder.frm
34Kb
frmRoutineBuilder.frx
442b
Similar code
A VB INI file manager -- no API's!!!
(Popularity: ) : This code provides pure VB source for the following API calls: GetPrivateProfileSection, GetPrivateProfileString, WritePrivateProfileSection, and WritePrivateProfileString. With this code, YOU CAN ACCESS LARGER *.INI FILES!!! Unlike the traditional API commands, there is no limit to the size of *.INI file ... Active X DLL Made Into Windows DLL
(Popularity: ) : Ever want to make Windows DLLs or Windows Control Panel Applets But stuck With VB Active X DLLs? Here is your answer: Now Includes: -.Def Maker Addin- Define Helper File Maker (Takes your exported functions and makes them defines for ... Random String Generator
(Popularity: ) : There are many random number generators, word generators, string generators, etc., etc. but most of them generate random stuff by means of an algorithm, this uses no algorithm and little math is involved. it works by tracking the location of ... Check for PrevInstance
(Popularity: ) : This code checks for a previous instance of the program. This is not like the App.PrevInstance property. This checks the prevInstance no matter the location of the file, or the name of the app. You don't have to call DestroyWindow ... AddIn Insert Procedure Headers
(Popularity: ) : This Add-In allows E-Z formatting of Procedure headings. I wrote this because of the laziness of fellow developers who saw no sense in taking the time to AT LEAST document a Subroutine or Function or Property (until 6 months down ... A Code Designer
(Popularity: ) : Ever had a look on someones other well designed source code and wondered how they did this ? With this little Application u can do the same with one click Add Bitmaps To Menu
(Popularity: ) : Demonstrates how to add bitmaps to menus using VB 5 or 6 Active Controls
(Popularity: ) : Provides a method of detecting when the mouse enters and exits a control including labels and images. This routine leaves all events enabled and functioning including the MouseUp and MouseDown events. Zip n Mail Project
(Popularity: ) : Add-in for visual basic that will zip up all files in the project and open a new mail message with the subject as the name of the project. Can also password protect the zip file. pkzip and winzip compatible. ActionKeyState
(Popularity: ) : A modification on Phobos submission for manipulation CapsLock, ScrollLock and NumLock. I made a function to either get the status or set (On, off, toggle) the status for these keys. Since i don't have Win95/98, i left that code out ...