By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,574 Members | 2,960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,574 IT Pros & Developers. It's quick & easy.

Option Explicit statement

P: n/a
ARC
Ok, this is strange. I created a new database and imported all objects from
the old program file.

Form some reason, the option explicit statement is no longer showing in my
code modules (and I would assume any form modules as well). However, even
though in the vb code window, under options,, the option "Require variable
declaration" IS checked.

Any ideas how to restore the Option Explicit option to all my modules? I
never used to have to do this manually, and I can't imagine checking every
module to add this on.

Many Thanks,

Andy

Oct 4 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ARC
Oops, nevermind. I put in one option explicit, and it took care of all
modules.

Not sure how it was removed on importing the objects, however, that is a
mystery... And it took a couple hours of testing a runtime to figure this
out. First big clue was removing a dimmed variable, and the project still
compiled fine, when it shouldn't have.
"ARC" <PC*****@PCESoft.invalidwrote in message
news:K2*****************@newssvr11.news.prodigy.ne t...
Ok, this is strange. I created a new database and imported all objects
from the old program file.

Form some reason, the option explicit statement is no longer showing in my
code modules (and I would assume any form modules as well). However, even
though in the vb code window, under options,, the option "Require variable
declaration" IS checked.

Any ideas how to restore the Option Explicit option to all my modules? I
never used to have to do this manually, and I can't imagine checking every
module to add this on.

Many Thanks,

Andy
Oct 4 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.