o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Module/Class (maybe) help -

hi, could someone please tell me the correct way of doing this...

As an example, I have a form with a few variables and a few buttons/labels etc on it. All i want to do is simple things such as on button click, change a variable value then update a label with the new value. Clearly this would be very easy to do by clicking on the button and adding the code directly to the click button event but several people will be working on different button click events so what I need to do is create additional vb files, then on the button click run the code within the additional file (but have the program treat the additional file as though the code was simply written in the button click event area so variables etc can still be accessed).

I'm sure this can be done but have no idea how (being new to this...).

I'm sorry if i have made little sence here, please let me know if you need further explanation. Many thanks to anyone who can help.

 

Class and bas modules -
Hi, I have a project with a class module and a bas module. Most of my functions in the bas module is used by functions in the class module, which works fine. I need to call a function in my class module from my bas module, how can I do this without creating a new instance of


Module and class module -
Hi all Thanks for previous My next question is that we have two option in vb module and class module , I always work with module, but What is class module can any one tell me the difference between the module and class module with example Thanks!!


difference between Module and Class Module -
can someone explain the difference between a Module and Class Module i've used both but dont seem to see much difference ( i've put code in a module in a class module and vise versa and the program has stilll worked fine)


Form Module -
Hi all, Yesterday i got to know that there are 3 types of Modules in VB. 1)Module (our normal module) 2)Class module and 3) Form module. I know the first 2 types of Module. But i really don't know about Form Module. Can anyone explain? And please correct me if i have mistaken.. Than


Simple - Class module -
Sups, I would like to know what is the difference between module and class module? Also, what are class module for? how can i use them? tnx


Difference between module and class module -
Hi Guys, Where can i use module and not in vb and where can i use class module and not in vb. Thanks in advance.


Creating Dlls from a class file , with only a module -
I am working with VB 6.0. My issue is, I have a project that has a class module and .BAS module. The class module has no code. The bas module has constants and functions that are public. I need to make this project a dll. I have to access the methods and constants from another appl


Add Module vs Add Class Module -
Where does the need of using >>project>>Add Class Module arise in VB? What's the differene b'ween Add Module and Add Class Module?


Module and Class Module -
This may be a stupid question but could someone explain to me the differences between a Module and a Class module and why I should use one over the other. I have pondered this for sometime. Thanks Jason


RESOLVED: Compiling Class Module To .dll -
i have a little graphics library for picture boxes made here into a class module, and i want to compile it to a dll so i can make it a reference and call it just like i would the class module. im having a problem compiling it to a dll though, it says no creatable public component detec


[2005] module<>class now -
My understanding is that module=class now, that everything was a class. If that's the case then why is it i must define interfaces in a module and not a class??? is it because something in the back side of the project does not require module instantiation, whereas a class has instan


Class Module & Module -
I am wondering if there is a difference of performance or resource requirement if an application is build using either class module or module. say i have huge structures defined in a module, this huge structures make takes up lots of space during the entire runtime of the applicatio


module doesn't know the formname -
I made a module (class module) to use in different projects. To be portable I don't want to go inside the module to change things for every project. I want it to be a black box. Here's my problem. Inside the module are the basic operations: formname.cls formname.refresh


Activex.exe - class module or simple module -
Hi , I have this activex.exe project I'm working on. The default module in this kind of project is class , but it seem to have some disadventeges like : can't use public array.... So I've added simple module . My ques. is in which module it's better to write my code : class /


Module Vs Class Module -
hi buddies i m confused about the difference between Module and class Module... && .bas stands 4 ..?


How to name a class module -
The post of shame... I'm reading tutorials on classes in VBA. They all mention renaming a class from a generic name to something that makes more sense. None of them say how to actually do this. How does one rename a class module and a module? Also, when you declare public va


VB6 Module and Class Module -
Hey there, can someone explain it in simple words, Whats the difference between Module and Class Module? When is better to use Module or when is better to use Class Module? Thanks.


Help with modules and scope -
With VS2005 I have in my main Form1 class Public FSInterface As New FSDataClass. If I add a module how can I let the module see this FSInterface object please? Also in a module, with VS6 I could define 'global test as integer' and all forms etc could see that variable, I cant


Module or Class Module -
I have decided that I reference ADO to make connections to access using recordsets more often then usual, so I planned to make wrappers around the most frequently used functions but Im not sure if I should just make it a module or turn it into a class module. Any ideas which would


Adding A Module To Webapp Project -
This may seems crazy, but how do I add a module to a web project. Did VS2005 eliminate this feature...I see where I can add a class module(needs to go in a app_class folder). But a module is not available when I add a new item to the project. I guess I'm just stuck either


Acx Dll and Class module -
What is the difference between a class module created in a std Exe using >>project >> Add class Module and Activex Dll class module


Code Module -
Hello again, its your luvable cuddly dorkalishous guy Macai coming along to ask another idiotic question! OK, what i need to do is simple. You know how youd load a module into vb? You know, Add>Module>Exist\New. Well, i was wondering, is it possible to add or remove a mod


What exactly is a Class Module -
I just wanted to know... What exactly is a Class Module? and How does it differ from a BAS Module? (I need a new thing to start learning so I figured why not Class Mods) (and if anyone feels up to it...post some code for some simple class modules and maybe how to implement t


Can I have an internally as well as externally public procedure in a class module -
Hi everybody, I want to have a procedure in a class module, which could be called from other modules and forms in the class project as well as from external projects instancing the class. Is that possible ? At present, I am placing a public procedure in a module, which I am cal


Class Module -
Hi I am creating a class module that I only want to be able to use if a particular table is within the database. I know how I can use an exists function to do this, but I'm not sure where to put the error trapping, would it be in the class initiate event, and if so, how do I then


Modulel Vs Class Module -
What is the difference between a class module and a module. When should i use a Class module instead of module?? Thanx for the help


what are modules - newbie question -
Hi all can anyone explain to me what a module is and whats the difference between a module and a class module? Cheers Wayne


Easy Question for everyone but me. -
Like i said, i am embarrassed that i don't know such a probably obvious answer. What is the difference between a regular module, and a class module? What is a class module used for?


Class Module and Inet Control -
Hi, I have and ActiveX DLL project in which I have a class module, I want to use Inet Control in my class module, how can I create the instance of Inet Control in class module, as in Standard EXE project, we select and draw control on form, what will I do in case of class module.


Sharing Module Code -
Hi All, I have a quick question I hope. I have a common module that I am using in a Class module and a new project, so I created a group and added the Class project and the new project. The problem I am having is VB only wants to allow the common module to be open once. Is th


Quick Threading and module question -
Hello, I am writing a multithreaded app, and I have the code working. Now I am adding a module to my code. Im still new to this so I was wondering what happens if for example I had the following code: Public Module test Private m_string As string Public Function...


randomize with a class module -
howdy i have a class module and i need to get out 3 random numbers. i can't seem to do this from inside the module. i can, from outside the module do something like this: Dim i As Integer Do While i < 3 lblTumbler(i).Caption = TheBandit.SpinTheTumblers i =


Newbie question about things in general. -
1. Is there any other reason to use a module other than to store reusable code? 2. Why build an OCX or DLL when you can just use modules? 3. What is the difference between a module and a class module?


Sub or Function not defined (Class Module) -
Well, as you can imagine, I have created a small class module to handle the auto updating of my program (it had to be a class module for implements to work) but for some reason when trying to call a "Public Function" inside of the class module from a form, the function does n


How to determine what module calls which -
This forum is great for newbies like myself. I love it! Question: How can I determine which module calls which module? In other words, say I have module A, module B, and so on through Module z. Within these modules, I might have a bunch of modules calling to the same module. Ho


Quick Question, Please Help! -
HI, I have been programming in visual basic for about 2yrs. I am all self taught and I have never used the class module before. I know that a regular module can be used to declare global sub/funtion/vars/api declares, but what exactly does the class module do and what are the major d


Calling a class sub from a module -
I have a global sub in a module(sub A) and a sub in the class(sub B). I need sub A to call sub B. I'd make sub B global, but sub B uses internal variables within the class. BTW, when the class Initializes, it aquires the keyboard, so I just can't declare it from the module that sub A i


Class modules and WithEvents -
Ok, I have a project that uses a class module. Inside that module I have a withevents declare: Private WithEvents DelayTimer As Timer Now I can use that as though it were a real object, but it's not set to any "real" object so I can't change any properties at that po


Data Set not Visible outside VB class -
I have a ADO.NET data set that is defined globally as Public Datast as Dataset in the VB main module. I then set the data set in a class module. However, I cannot view this data set in any other subroutine than the one in which it is set. It shows up as nothing in any othe


activex dll and standard module -
I'm a bit confused about sharing data in an activex dll - sharing that data throughout the project itself vs. sharing that data with the public. It seems that anything delcared public in the class module can be seen by the public but can not be seen by a standard module within the proj