Hi,
Currently and according to the documentation, for a given variable there can be :
- Local scope inside a sub or function,
- Global scope inside a script,
to the extent of my knowing and at this stage of thinBasic developpement, there can't be an Include scope
which could be useful when splitting a script into reusable/shareable parts between projects
and assuring there will be no variable-name conflict.
Actual workaround is to manually prefix each variable to make distinction.
Same idea for subs/functions ?
Your opinion ?
Bookmarks