Solved

VBScript code modularization?

Posted on 2002-05-08
2
459 Views
Last Modified: 2010-05-02
I'm using VBScript to do some ADODB work locally (i.e. not an ASP thing). I have several years of experience in VB, but I'm fairly new to VBScript.

I wonder if I can have functions in a .vbs file, and call them (with parameters) from another .vbs file? Just like you have modules in a VB project and call their functionality from a form.
0
Comment
Question by:liljegren
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 50 total points
ID: 6996341
You are much better creating an ActiveX DLL with the appropriate functions, classes etc and using these from your VBScript code.
0
 

Author Comment

by:liljegren
ID: 6996636
Okay. I understand this is the limitation.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now