Code > Module / Class?

Ironis

Learning Member...
Local time
Today, 07:21
Joined
Oct 10, 2002
Messages
61
FormCode to Module or Class?

Hey there,

I have a question. I'm working on a planning code, but it seems to get a bit long. Now I want to put the code into modules or classes, to make it more clear to review etc.
Can I do this? and if so, how can I do this?
 
Last edited:
So there is no way to use a module / class for the code? I know that with VB it can, but I don't know how to refer to the code that should be used from the formcode. Does anyone know this?
 
Not sure what you are asking, are you wanting to refer to the code in your form class module from somewhere else? If so, put that code into a module and make it public. The call the sub/function from you form and anywhere else.

If this isn't what you are asking, be a little more specific and I'll see what I can do.
 
I want the code from a form to be in a class or module, so I have a better overvieuw of the long piece of code. It's about 12 pieces of paper, times 6.. so thats why I want different classes/modules, also so that I can refer to it on multiple forms..
 
and how can I call a module or a class if i got the code in there? That would make the overvieuw also better, for revieuwing or changes to the code..
 

Users who are viewing this thread

Back
Top Bottom