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

A97: Is there a way to exclude certain modules from being compiled?

MLH
If I test the integrity of my code, opening a module, clicking
Debug, Compile All Modules, the process stops at the first
occurrence of a coding error. Can I skip that and go on
somehow (you know, if the err occurs in a form module
I'm testing but don't wanna fix right now)?

How about a Debug, Compile All Modules Except For...
???
Nov 13 '05 #1
4 1435
On Sun, 24 Jul 2005 08:05:00 -0400, MLH <CR**@NorthState.net> wrote:
If I test the integrity of my code, opening a module, clicking
Debug, Compile All Modules, the process stops at the first
occurrence of a coding error. Can I skip that and go on
somehow (you know, if the err occurs in a form module
I'm testing but don't wanna fix right now)?

How about a Debug, Compile All Modules Except For...
???

Hi
look up conditional compiling (or conditional compilation) in help.

I have sometimes used this when I have similar code in Access and VB, or for DAO and ADO.

Nov 13 '05 #2
MLH
Thank-you, Polite Person. Although it was not what I really
would like to have seen, it made for interesting reading and
I'll play with it in the future.
Nov 13 '05 #3
On Sun, 24 Jul 2005 08:45:57 -0400, MLH <CR**@NorthState.net> wrote:
Thank-you, Polite Person. Although it was not what I really
would like to have seen, it made for interesting reading and
I'll play with it in the future.


You're quick at replying!
I'm watching the F1 race and made my post during one of the adverts

Nov 13 '05 #4
MLH <CR**@NorthState.net> wrote in
news:6l********************************@4ax.com:
If I test the integrity of my code, opening a module, clicking
Debug, Compile All Modules, the process stops at the first
occurrence of a coding error. Can I skip that and go on
somehow (you know, if the err occurs in a form module
I'm testing but don't wanna fix right now)?

How about a Debug, Compile All Modules Except For...
???


Compile compiles all *open* modules, and all modules on which those
modules depend.

What that means is that if you have Module1 open and compile it, and
it uses a fuction/sub in Module2, which is closed, but saved in a
non-compilable state, then Module1 won't compile.

There is no getting around this restriction because it's absolutely
necessary.

Why do you have lots of non-compilable code lying around?

If it's because of conversion from Access 2, I wonder why the code
didn't get properly converted in the initial conversion? My
experience with Access 2 conversion to A97 was that it was pretty
simple to correct the parts that didn't compile after conversion --
took about an hour to step through all the code and fix the
problems.

One possible solution would be to move the non-converted code into a
single module, but any code that calls functions/subs in that
non-compilable will not compile.

Fix the code.

Be done with it.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #5

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

Similar topics

36
by: Tim Churches | last post by:
If a compiled Python extension module B includes code from some other software A which is licensed only under the GPL, do other Python programmes, C, which import module B also need to be licensed...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
22
by: Bradley | last post by:
Has anyone else noticed this problem? I converted the back-end to A2000 and the performance problem was fixed. We supply a 97 and 2000 version of our software so we kept the backend in A97 to make...
2
by: Ralph2 | last post by:
Hello Some time ago with the help of this group I made an amateurish database that catalogs all of our shop drawings. Works really well ( I think) but management, in its infinite wisdom, wants a...
10
by: MLH | last post by:
MyLocPhone: Format$(,"(@@@) @@@-@@@@") The above expression is a field in a select query. On one XP box (the dev box, of course). It works fine. On two other XP boxen - it fails saying "Function...
5
by: MLH | last post by:
I had a form (Form12) with a code error in it. I knew it was there. I even planned on fixing it (someday). I needed a comprehensive test of all my code so I clicked Debug, Compile All Modules. My...
8
by: MLH | last post by:
Have a look at the procedure below. In particular, note lines 1 and 21... Private Sub JudHrngReqBtn_Click() On Error GoTo Err_JudHrngReqBtn_Click Dim ThisForm As String ThisForm = Me.Name ...
9
by: MLH | last post by:
Trouble is, it doesn't happen every time. Yesterday, for example, it happened only once and not again afterward. Some days ago, a similar situation. Today, well - I tried 7 times straight to open...
6
by: MLH | last post by:
Can decompiling an A97 mdb result in fixing minor nasties that may be responsible for some premature terminations of A97 (We are sorry. MS Access 97 needs to close.... messages). I've found the...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.