Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing functions from another file

Status
Not open for further replies.

jimhwang

Technical User
May 11, 2001
2
US
Is it possible to import another visual basic (.bas) files which defines some functions to be used during run time? Basically, I would like to do something similar to the #include in C or Use/Require in Perl ?

Thanks,
Jim
 
Just choose 'Add Module' from the project menu and browse for the file. Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Actually, I was interested in a piece of VB code that would do just that.
 
ok, now i'm confused about what you are trying to do. if you want to have some precompiled functions you can call from different programs you would create an active-x .dll and create an instance of it in your program. How exactly do you want to use this?

Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Look up "References" in help. The description there (I think) only refers to doing it manually, but if you follow the trail, you can see how to do it programatically, although I have never quite found a compelling need to do it that way. Perhaps if the referenced stuff was somewhat extensive and different apps used small sub-sets of the material?


MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top