VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



RoutineBuilder v2.5

by Crss B0NES (1 Submission)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

vbRoutineBuilder 2.5
First off this code started with Kurt J. Tischer's first
https://www.vbcoders.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.

Inputs
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.

Rate RoutineBuilder v2.5

Download RoutineBuilder v2.5

Download RoutineBuilder v2.5 (13 KB)

RoutineBuilder v2.5 Comments

No comments have been posted about RoutineBuilder v2.5. Why not be the first to post a comment about RoutineBuilder v2.5.

Post your comment

Subject:
Message:
0/1000 characters