There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
bios black screen blue screen boot computer connection crash css dell display driver drivers email error excel firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow sound startup trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
How do I make a sub run another sub?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Obinice's Avatar
Computer Specs
Senior Member with 215 posts.
 
Join Date: Sep 2004
Location: United Kingdom
Experience: Intermediate
09-Jul-2005, 06:04 AM #1
Unhappy How do I make a sub run another sub?
First off, how do I make a sub run another sub, like

"If blah blah Then run this sub"

And also, how do I name the other sub? like, its headding, e.g "private sub cmd_click()", what would it be for a sub thats not actually got anything to do with any changes in anything, its just run when u want it to be.....

I'm stuck you see, without knowing this. I'm sure its simple, could someone let me know? Thanks!
q_ethics's Avatar
Member with 86 posts.
 
Join Date: Nov 2004
Experience: NA......
09-Jul-2005, 10:57 AM #2
Quote:
Originally Posted by Obinice
First off, how do I make a sub run another sub, like

"If blah blah Then run this sub"

And also, how do I name the other sub? like, its headding, e.g "private sub cmd_click()", what would it be for a sub thats not actually got anything to do with any changes in anything, its just run when u want it to be.....

I'm stuck you see, without knowing this. I'm sure its simple, could someone let me know? Thanks!
sub1

if (blah blah)

sub2 arg1,arg2,...

endif

end sub1



sub2(arg1,agr2,...)

blah1

blah2

end sub2
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:16 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.