Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whats better to SHARED or not
#12
(11-07-2024, 08:04 PM)doppler Wrote: Sort of what I expected.  Better to ask before tripping over a landmine of problems.  I have fallen for the undeclared shared variable, only to see it as a local to the sub only.  Wondering why nothing happen after the sub call.

Thanks all around.
It's unrelated to the Shared/local discussion, but this problem can be solved by using `Option _Explicit`. It forces you to declare every variable, that way if you didn't declare a variable shared but also didn't declare it locally then you'll get an error at build time.
Reply


Messages In This Thread
Whats better to SHARED or not - by doppler - 11-07-2024, 04:23 PM
RE: Whats better to SHARED or not - by ahenry3068 - 11-07-2024, 04:29 PM
RE: Whats better to SHARED or not - by bplus - 11-07-2024, 05:02 PM
RE: Whats better to SHARED or not - by madscijr - 11-07-2024, 10:01 PM
RE: Whats better to SHARED or not - by doppler - 11-07-2024, 08:04 PM
RE: Whats better to SHARED or not - by madscijr - 11-07-2024, 10:13 PM
RE: Whats better to SHARED or not - by doppler - 11-08-2024, 03:10 AM
RE: Whats better to SHARED or not - by bplus - 11-07-2024, 11:39 PM
RE: Whats better to SHARED or not - by bplus - 11-07-2024, 11:44 PM
RE: Whats better to SHARED or not - by DSMan195276 - 11-08-2024, 05:54 AM
RE: Whats better to SHARED or not - by vince - 11-08-2024, 06:39 AM
RE: Whats better to SHARED or not - by madscijr - 11-10-2024, 06:13 PM
RE: Whats better to SHARED or not - by Pete - 11-08-2024, 06:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Whats the difference between a Utility and a Program bplus 20 1,580 01-18-2026, 06:51 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)