Global Vars FYI...
User Steve Dryja (firstname.lastname@example.org) posted:
Just a reminder...
(Since Rationals description of the subject is fuzzy)
There are three levels of scope to a var.
Local vars dimmed inside a sub or function are only seen by that sub or function.
Vars outside of a sub or function inside of a script are seen by all sub's and function's in the script BUT not by other scripts connected to the project.
Vars like; "Dim var as String" in a .sbh file and included at the very top of a script is still only seen by the sub's and function's of that script and not by other scripts connected to the project.
Vars like; "Global var as String" in a .sbh file and included at the very top of a script is seen by ALL sub's and functions of ALL script's connected to the project.
I learned this the hard way when I dimmed a var Global in a .sbh file and used it in other scripts. I found the value changing when the script I was currently running was not changing it!!!
Hope this helps.
Comments, questions, suggestions, please contact me.
Romans 6:23 For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.
"Kindness is the oil that takes the friction out of life."
Sign-up for your own FREE Personalized E-mail at Mail.com