We help IT Professionals succeed at work.

bas or mod?

eliwil
eliwil asked
on
1,245 Views
Last Modified: 2008-02-01
I've seen bas and mod as prefixes. What's the difference between the two?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016

Commented:
nothing, just a matter of preference.. denoting something as per the author.
CERTIFIED EXPERT
Top Expert 2016

Commented:
some uses the prefix bas for basic functions
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2013

Commented:
Hi eliwil,
bas and mod both are commonly used to prefix module names.  bas is part of the popular Reddick VBA naming conventions, described here:

http://www.xoc.net/standards/rvbanc.asp

Forensic Computer Examiner, Analyst/Programmer & Database Architect
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018

Commented:
We use bas prefix for standard code modules and cls for class modules.
As both types are modules, prefix mod is a bit disturbing.

But it is really up to yourself. Any prefix will do but you should/must use one to avoid naming conflicts with other objects.

/gustav
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.