That would be a very nice thing in RB. Could be something like this:


Scope

   Dim i as Integer

   i=1

End


To make this more comfortable, it should be allowed to reuse the same variable names again in the next scope.

Paul




I frequently use the equivalent in C or C++ of just

{
declare something
use something
}

The advantage being that C allows you to just arbitrarily bracket code to generate a local scope.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to