Solved

VBScript code modularization?

Posted on 2002-05-08
2
463 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

774 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