lifetime

  1. T

    Scope and lifetime of variables

    My understanding of a variable's lifetime is that if it is declared at the module level, it retains its vaue, even after the sub has finished running. So in my following code, after first running Test1 to the end, if I run Test2, the messagebox shows the value of 10, as expected. Dim a As...
  2. G

    variable scope problems

    I have "variable scope problems". I have read the help, and I think I understand it, and I have my code organized so that I should have no scope problems.. But I do. Mostly, my problem seems to occur when I have a Function or Subroutine procedure which calls another Function or Subroutine...

Some videos you may like

This Week's Hot Topics

Top