11-10-2024, 11:26 PM
(11-08-2024, 06:39 AM)vince Wrote: global variables are reserved for either inexperienced, lazy, or really advanced programmers -- stick to the middle of the pack for the safer bet
LOL
global variables are like GOTOs, GOSUB and DEF FNMyFunction!
Only the worse and the best of coders use them!
Do you have a Function that can distinguish between the first and the second type of coder?
It would be interesting...
Well
I post this picture for remembering the field of existence of variables and how to work with them (find, see, read, modify etc)
In BASIC we have keywords like COMMON, DIM (REDIM) SHARED, SHARED for declaring variables visible from different levels of code.
There is something like this way to share variable also in other programming languages?