Karen, You would not need to clear module level variables (those variables declared in the "General Declarations" section of a module), nor would you need to clear any of your Function or Subroutine level variables. They live only for the life of the module, function, or subroutine. You would need to clear any object variables you may have used -- by setting them to nothing. I find VB a lot easier to work with in terms of variables. In R:BASE, all variables are global which makes it easier for a beginning programmer to understand but it makes code re-use more difficult than it is in VB. For example, you can't run the same block of code in R:BASE without disturbing the values of the variables from the first run and so on... As with anything, there are trade-offs. What VB gains in functionality with variables, it loses in ease of understanding for the beginner. Variable scope is really hard to teach and to understand when you begin in VB. In R:BASE, you have no such issues to learn, teach or understand. Scott ==== tellef wrote: > I have done some programming in VB and at first all I could > think of is that I've worked on some HUGE projects but there > was never any code to clear specific variables, such as we > in RBase land always do. I suppose I could look it up in > one of my VB books, but I don't remember where the variables > 'go' when the module is complete. Leaving variables around > didn't seem to be a problem. > > But I forgot that we always set objects '= nothing' when we > were done. So you're right, even in VB there is some cleanup > that needs to be done. > > Karen -- Scott ==== Scott J. Salisbury Matrix Data Systems / The R:Street Journal 5114 Point Fosdick Drive NW, Suite E-272 Gig Harbor, WA 98335-1733 E-Mail Address: [EMAIL PROTECTED] Temporary URL: www.seanet.com/~sjs (downloads available) New Web Address: www.rStreetJournal.Com Direct Line: 206-423-7679 Toll Free: 888-386-5040 Seattle: 206-448-7975 Fax: 305-425-0491
