Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Option _Explicit Keyword(s) of day XXX:
#1
This thread started so people can talk about Option _Explicit without hijacking other threads.

Use Option _Explicit in your code to save yourself from typos, probably the number one cause of grief to any coder on any level.

Yes it forces you to declare every variable you use. Yes Dimster that includes For ... Next index variables.

If declared variable is a Const, you don't have to DIM it, same goes for Static, same goes for ReDim (or should).

But there is an interesting by-pass, if I recall, stay tuned... Nope! the example I had in mind didn't work as I remembered.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
Option _Explicit Keyword(s) of day XXX: - by bplus - 06-04-2023, 04:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Keyword of the Day 45: _PIXELSIZE SMcNeill 1 873 01-03-2023, 07:41 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 2 Guest(s)