473,407 Members | 2,598 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,407 software developers and data experts.

Using a module

This may sound very basic. I have built a very long procedure with way too
many Ifs etc. I wonder if it is possible to transfer at least some of the
contents to modules so in case an if condition is satisfied the procedure to
be followed will be in a module. As an example, let me say that I have an
If condition stating:

If Hypo_length>35 Then
Do a bunch of stuff
End if

Can I have all that "bunch of stuff" in a module that I name "Module9"?

If this is a possibility, what is the command for activating the "Module9"?

Thanks in advance for your help

J.Charalambides.
P.S. Please do not send replies directly to me cause I removed my actual
address due to too much spam that I receive lately. A response in the group
will be greatly appreciated.
Jul 17 '05 #1
2 3105
> This may sound very basic. I have built a very long procedure with way
too
many Ifs etc. I wonder if it is possible to transfer at least some of the
contents to modules so in case an if condition is satisfied the procedure to be followed will be in a module. As an example, let me say that I have an
If condition stating:

If Hypo_length>35 Then
Do a bunch of stuff
End if

Can I have all that "bunch of stuff" in a module that I name "Module9"?

If this is a possibility, what is the command for activating the "Module9"?
Thanks in advance for your help

J.Charalambides.


Select Project, then Add Module.
you can then say something like
VariableName = Module1.OtherVariable
I assume you'll be passing parameters, this is done in the same way as
passing parameters to a normal procedure.
Jul 17 '05 #2
"Jason Charalambides" <no****@protectionplan.com> wrote
This may sound very basic. I have built a very long procedure with way too
many Ifs etc. I wonder if it is possible to transfer at least some of the
contents to modules so in case an if condition is satisfied the procedure to
be followed will be in a module. As an example, let me say that I have an
If condition stating:

If Hypo_length>35 Then
Do a bunch of stuff
End if

Can I have all that "bunch of stuff" in a module that I name "Module9"?


Yes, but that would be overkill. That If/Then code is in a procedure, either
a Sub, Function, or an event. To break it up simply add a new procedure
(Sub or Function) in the same module you are currently using. That way you
keep all the code that works together, in the same module.

LFS


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David | last post by:
I have this error message poping up when I try to import a module I made in C using the Python/C API. Everything compiles like a charm. Gives me this error message : Traceback (most recent...
1
by: orit | last post by:
I have the following xml file: <?xml version="1.0" encoding="utf-8" ?> <course id="2555" title="Developing Microsoft .NET Applications for Windows (Visual C# .NET)" length="5 days"...
1
by: Venky | last post by:
I'm compiling a C program that is using Interbase 6.0 APIS. Getting the following errors at the time of linking. Linking test.exe: Linker Warning: No module definition file specified: using...
13
by: Bijoy Naick | last post by:
My project contains multiple aspx pages. Many of these pages have code-behind that use several helper functions. Instead of copying each helper function into each aspx page, I am thinking of...
2
by: Martin v. Löwis | last post by:
I've been working on PEP 353 for some time now. Please comment, in particular if you are using 64-bit systems. Regards, Martin PEP: 353 Title: Using ssize_t as the index type Version:...
5
by: pyapplico | last post by:
Is there any possible way that I can place a .py file on the internet, and use that source code in an .py file on my computer?
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
18
by: Angus | last post by:
Hello We have a lot of C++ code. And we need to now create a library which can be used from C and C++. Given that we have a lot of C++ code using classes how can we 'hide' the fact that it is...
3
by: Tony Johansson | last post by:
Hello! You can set target Module for AttributeUsage. I just wonder what does it mean with module ? //Tony
11
by: minishilpi | last post by:
I have a question - I have this code below to send an email and I have referenced the Microsoft CDO Library 2000. It doesn't throw any exception in the console window. It goes throughout the code...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.