Re: Option Explicit



So the statement written in the Performance Analyser tool "Using an Option
Explicit statement will enable your code to run faster." is wrong?

does it deal only with the compling time or also with the runtime?




"Rick Brandt" <rickbrandt2@xxxxxxxxxxx> a écrit dans le message de news:
ZSVdi.20554$C96.19386@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Warrio wrote:
Thanks for your quick answer! but sorry I forgot to mention in which
way it would help Access to run my code faster ?

and so far, I'm happy to have the choice to declare or not my
variables and set their type, but I'm ready to change my habits ONLY
if it can help my forms run and load faster (you made your choice, I
can have a different one) ...
the main part of my forms performances is dealing with the sql
requests and actions. but how much will I win if I use "Option
Explicit" knowing that today users have 1 to 2 GB processors...

Thanks again!

It has nothing to do with speed. It has to do with catching silly typing
errors at compile time instead of having them fail at runtime.

If you like taking silly risks then go ahead and leave it out.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com




.


Loading