05-19-2024, 07:45 PM
(05-18-2024, 08:20 PM)DSMan195276 Wrote: That said it is potentially something that could be introduced, maybe a `Dim _Local` or something, but that's never been discussed.
Perhaps something similar to the following could be added someday:
Code: (Select All)
_Scope 'foo'
As Long a, b, c
As Single s
As Double d
End _Scope
_ScopeStart foo
'use a, b, c, d, s all you want as they were defined in _SCOPE 'foo'
_ScopeEnd foo
Then one can pick exactly how local they want that variable to be.