| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
Quick silly question - what is 'bas'?
A lot of modules I see in sample databases are titled "bas_xxxxx". What does the "bas" signify and should I be using it for my modules?
Regards, Keith. |
| Sponsored Links |
|
#2
|
||||
|
||||
|
Hello
the bas extension is a hold-over from the days of Quick basic, Turbobasic, Visual basic, and such applications, thus the abreviated "bas" extension. It was used to denote ancillary modules that held global code that could be incorporated into user projects. It is still widely used, but sort of cryptic. I use the extension "mod" to preface any global modules that I make, such as "modPrintRoutines", "modStringRoutines" and such. This makes it clear that it is a module of code. Regards Mark |
|
#3
|
|||
|
|||
|
A trap for new players! Thanks Mark, now that I know, I will be using 'mod' myself.
Regards, Keith. |
|
#4
|
||||
|
||||
|
Hello:
Your welcome. Just side note for whatever it is worth,this convention of prefacing object names in lower case, is called the "Hungarian" naming style. It was named after the native country of its inventor Charles Simonyi. Most professional Access developers adhere to this convention. Some Access examples are as follows: ' "tbl" for table: tblEmployees, "qry" for query: qryEmployees, "frm" for form: frmEmployees, and of course "mod" for module. I believe there is a wealth of information on the subject on the Internet. Also, this convention is used in programming as well for the naming of variables and such. Regards Mark |
|
#5
|
|||
|
|||
|
Quote:
A quick check shows that "bas" is indeed there and listed as 'module' so maybe bas is what I should be using, even though it no longer reflects the description of the object. I don't know - I like 'mod' better. Quote:
The link below is a web site with all the goods on this, which incidentally, disagrees slightly with the history you gave. http://www.acc-technology.com/namconv.htm Anyway, now I know, I have the choice. Regards, Keith. |
|
#6
|
||||
|
||||
|
Hello Again
Thank you very much on that. I stand corrected. Charles Simonyi developed the naming developed the Hungarian notation for naming variables. Both these folks struck on brilliant way of making an application and its code "self documenting" by just looking at it if the code and objects within it. Below is link about Simonyi. He is one accomplished individual. http://en.wikipedia.org/wiki/Charles_Simonyi Best of luck on all your projects Sincerely Mark |
|
#7
|
|||
|
|||
|
Quote:
I guess the possibility of Access is so great that many people (i.e. me) get involved in attempting things way beyond their current level of understanding. Sort of falls into the "Stuff I don't know I don't know" basket. Without the help given here, I wouldn't have got past my desktop. It has been a fascinating learning experience for me and I am truly grateful to all the gurus out there, especial the super-gurus who seem to monitor and post 24/7 with fast and concise snippets of wisdom. You are appreciated! Regards, Keith. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quick DLookup question and another... | DNS809904 | Modules & VBA | 4 | 10-18-2004 06:48 PM |
| Corrupted database - silly question? | David Trickett | General | 5 | 10-06-2004 06:32 PM |
| a quick report question | gadys | General | 7 | 09-23-2004 04:11 AM |
| A quick question | database | Reports | 4 | 06-24-2004 08:16 AM |
| Quick query question | PEASLET | Queries | 2 | 09-10-2001 01:17 AM |