> I try to declare major variables for any programmers unlucky enough to
have
> to work with my code in the future, but I'm grateful I can throw in a
>
> FOR n = 1 to 25
>
> without worrying where n came from and was it a character variable
before.
Exactly my tune. I declare them by placing a comment in the preceding line
- the semantics is far more important than syntax in this case. And if it's
a variable which may have several types - well, that's in generalized
utility routines, and is also commented. Of course, no one trusts a
variable with a name like i, j, k, ..., m, n, JohnSmith to have scope more
than couple of lines or one block - those are commonly known single-use
variables, whose values are not necessarily preserved across function
calls.
> Now MY pet peeve is the need for a form-wide variable. Sometimes it just
> isn't convenient to use a form property....
>
> Barbara
....which reminds me of an unfinished thread on passing variable by ref to a
CreateObjectED form's init, how's it scoped? Lost in space when init exits?