|
-
Jan 9th, 2002, 07:01 AM
#1
Thread Starter
Junior Member
Add code to all Forms
I have a large application which contains many hundreds of forms. I need to add a set piece of code to a particular procedure on every form in the system. Does any one know of a quick and neat way that I can copy the code to all the forms without me having to do it manually
-
Jan 9th, 2002, 07:13 AM
#2
put the code in a module, then all the forms can access it
-
Jan 9th, 2002, 07:17 AM
#3
-= B u g S l a y e r =-
Originally posted by Si_the_geek
put the code in a module, then all the forms can access it
he still have to do it manually
-
Jan 9th, 2002, 07:21 AM
#4
Peet is right. Order some pizza and call all your friends over. Its going to be a lot of work.
-
Jan 9th, 2002, 07:23 AM
#5
Addicted Member
You could make an Add-in that loops through all the
forms in your project and adds the code in each.
Add-ins aren't too hard to make, and when you get
used to making them, there are lots of things you
can do to automate your programming.
-
Jan 9th, 2002, 07:24 AM
#6
-= B u g S l a y e r =-
nono what Hack is trying to say is "Order some pizza and call Peet and Hack over... we will help u ... eating all that pizza"
-
Jan 9th, 2002, 07:26 AM
#7
Couldn't you just loop through all the .frm file and open then for input one at a time. Do a line input and until you find the procedure you need. Add your piece of code and move on to the next form.
-
Jan 9th, 2002, 07:29 AM
#8
PowerPoster
Maybe i am crazier than a coconut but could u use a little proggie to open up all the forms as text files, add the new routine and then save them..??? I posted something like this before for html files... any reason it wouldnt work for .frm files??
Regards
Stuart
http://www.vbforums.com/showthread.p...ghlight=parser
-
Jan 9th, 2002, 07:35 AM
#9
-= B u g S l a y e r =-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|