473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can i run a .bas file (module) dynamically in vb6 code?

--------------------------------------------------------------------------------

i need to call a function that is saved in a .bas file on disk.
the problem is i dont want to add the .bas module to my project.
i need to run it through code dynamically at run time. can any one help me?
Nov 17 '07 #1
1 1235
QVeen72
1,445 Expert 1GB
Hi,

use "Microsoft Script Control"
Open the .bas file , read the contents of the procedure and load all the code to this control and Execute.
Again it depends on what is the type of Function /Procedure, you are trying to Run...

Regards
Veena
Nov 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Marek | last post by:
Hi I need to call various functions in a native C++ DLL (FORTRAN eventually too) - passing integers, doubles, (pointers and arrays to both of these as well) and ultimately structures too. I was...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
0
by: John Allman | last post by:
Hi all, I'm trying to create a setup which allows a program to request an object using strings and get an object of that type. It appears to be mostly working but i have difficulties if i...
9
by: Stef Mientki | last post by:
I want to have a (dynamically) list of all classes defined in a py-file. Is there a way of getting this list, without manually parsing the file ? thanks, Stef Mientki
4
by: CoachBarker | last post by:
I hope I can explain this. VB.net Visual Studio 2005 What I need to do is take the names in a text file and read them into my application. That I have done and put them in an array but I don't...
3
by: jowharshamshiri | last post by:
i need to call a function that is saved in a .bas file on disk. the problem is i dont want to add the .bas module to my project. i need to run it through code dynamically at run time. can any one...
4
by: rlntemp-gng | last post by:
I am trying to dynamically populate the module name in the error message. Currently I populate a variable with hardcoded text: strModuleName = "cmdFlushWorkTables_Click" Per my code below, is...
12
by: ibloom | last post by:
I've been trying for a couple days to build a program using pyObjC on a mac, I'm stuck on this error: <string>: inconsistent use of tabs and spaces in indentation Traceback (most recent call...
10
by: Hero Doug | last post by:
I was wondering (besided using PHP ;) what in C++ could provide similar functionality to PHP's include(); In PHP you canjust type include() almost anywhere and that file will be included...
3
by: oorlando | last post by:
I have wampserver installed and running >> WampServer 2.0i Includes : - Apache 2.2.11 - MySQL 5.1.36 - PHP 5.3.0 <<
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.